Category: Angular

Posted in Angular

Bindings in template are not updated in Safari.

In Safari text is always black which is wrong, in other browsers text is changing its color to red when isLoaded is set to true….

Continue Reading
Posted in Angular

Custom Exception Handler

Hi all! I’ve been trying to implement my own ExceptionHandler and followed the docs: https://angular.io/docs/ts/latest/api/core/ExceptionHandler-class.html However, I am using ES6, so I can’t implement interfaces….

Continue Reading
Posted in Angular

Missing an equivalent to Angular 1 $compile

Hi, I’m trying to move from Angular 1 to Angular 2 beta. One of the things I did for Angular 1 was to write a…

Continue Reading
Posted in Angular

Router: The router content is not stored inside but inside

In Beta.2 the router generates DOM as: <router-outlet></router-outlet> <undefined _ngcontent-sts-2=””>…</undefined> Ideally the content should be inside <router-outlet>. Please correct it.

Continue Reading
Posted in Angular

[Router] router-outlet does not update for routes to same component

For some reason when there are multiple routes for same component, the router-outlet is only updated after a page refresh. Here is how they are…

Continue Reading
Posted in Angular

Equivalent to autoscroll=true: automatic scroll to top when route changes

When navigating within our SPA, we want to scroll back to the top of the page whenever the route changes. Users have commented that it…

Continue Reading
Posted in Angular

Proposal: OnInit with Promise

Goal I’d like to use Promise with OnInit. Similar implementation already exists on routerOnActivate. OnActivate – ts If routerOnActivate returns a promise, the route change…

Continue Reading
Posted in Angular

EXCEPTION: No provider for Http! (SomeComponent -> SomeService -> Http)

I am trying to inject a service within a component which uses Http component. I get the above error when i try to inject the…

Continue Reading
Posted in Angular

Dynamically loading directive

I’m running Angular 2 and I’m trying to figure out how to dynamically load a directive into an existing element. The use case is I…

Continue Reading
Posted in Angular

routerLink support of null/undefined

I think it would be convenient to allow routerLink to support a case where the binding resolves to null, empty array or undefined. In that…

Continue Reading