Declare below variables in class
highlightClass = "highlightText";
highlightRe: any;
spaceRe = /\s+/;
spaceRe2 = /\s+$/;
before: any = "";
after: any = "";
My Blog contain Phonegap,CMS related posts. Here I am posting the issues solution that I faced while development and its difficult to find proper solution on other sites. I hope my post will help you with your issues. Developer rocks.
Initialization of the variable to store all logs incontroller
$rootScope. = {}; timeSlots
//Function to createwith object eventname start time, end time using , ID
$scope.logEvent = function(Eventid, EventName, isEnd){if ( isEnd == false) { $rootScope. timeSlots [ Eventid] = { "name ":EventName , "startDate ": new Date( ). getTime ( ) }; }else { $rootScope. timeSlots [ Eventid] ["endDate "] = new Date( ). getTime ( ); } };Log starting time$scope. "function1" logEvent ( , "Function1 start Time", false);
ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the image as soon as the contained Angular expression changes. However, when the ng -src attribute is empty, Angular will not empty the src attribute. To overcome this, use the trick below.
<img ng-src="{{ element.image || '//:0' }}" />
ngSrc directive explicitly returns when the attribute value is false. As a workaround, set a "blank" image //: 0 serves this purpose: It adopts the current protocol, omits the hostname and sets the port to zero, which is invalid and should be killed by the network layer.src attribute when ng -src empties.<ion-view title="{{content.title}}">
<ion-view> <ion-nav-title>{{content.title}}</ion-nav-title>
@implementation NSURLRequest(DataController)
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host
{
return YES;
}
@end
try {
contact.birthday = new Date(parseFloat(value));
} catch (exception){
console.log("Cordova Contact toCordovaFormat error: exception creating date.");
}
They are lazy, Jobs says. They have all this potential to do interesting things but they just refuse to do it. They don’t do anything with the approaches that Apple is taking, like Carbon. Apple does not support Flash because it is so buggy, he says. Whenever a Mac crashes more often than not it’s because of Flash. No one will be using Flash, he says. The world is moving to HTML5.