Sharing Top Content from the Angular-sphere.
Browsing Tag

AfterViewInit

Having PHP handle the HTML code would mean that the Javascript side of Angular has limited interactivity with the template side which takes away the major advantages of Angular 2 of binding events to elements.Angular 2 has a feature called ElementRef in the Angular/Core library which returns the…
Read More...

Angular2 Lifecycle Hooks

>app.ts file: - - class MyComponent { - - constructor( ) { - - /*all other modules injection and dependency injection and initialization will go here*/ - - console.log(“This is Constructor”); // printed first in console - - } - - } - -…

Unusual Combination of Angular and PHP

Having PHP handle the HTML code would mean that the Javascript side of Angular has limited interactivity with the template side which takes away the major advantages of Angular 2 of binding events to elements.Angular 2 has a feature…

Angular2 Lifecycle Hooks

>app.ts file: class MyComponent { constructor( ) { /*all other modules injection and dependency injection and initialization will go here*/ console.log(“This is Constructor”); // printed first in console } } ngOnChanges:…

How to use Angular with jQuery?

If you are using TypeScript you could first reference jQuery typescript are not required since you could just use   as the type for   or In your angular component you should reference a DOM element from the template using   After the…

Differences between Promise and Observable in Angular

An   is like a   (in many languages) and allows to pass zero or more events where the callback is called for each event.With   it doesn't matter if you want to handle 0, 1, or multiple events.If the result of an HTTP request to a server or…

Angular2 Lifecycle Hooks

>app.ts file: class MyComponent { constructor( ) { /*all other modules injection and dependency injection and initialization will go here*/ console.log(“This is Constructor”); // printed first in console } } ngOnChanges:…

Angular 2 Data Grid Support

ag-Grid also supports editing of cells via Angular 2 Components. ag-Grid supports rendering of cells via Angular with either templates, or components. The release signifies a large step forward for ag-Grid, offering…