Jhades
Member since Mar 4, 2016
- Profile: /members/13085-jhades.htm
- Comments: 5
Recent Blog Comments By Jhades
-
Injecting HTML With The BrowserDomAdapter In AngularJS 2 Beta 9
Posted on Mar 28, 2016 at 11:50 AM
I was digging through this and found an alternative in some test code. This works, both in a SPA and in Angular Universal (just tried it): <div [innerHtml]="myHtml"></div> There is no documentation as of yet.... read more »
-
I Have A Fundamental Misunderstanding Of Change Detection In Angular 2 Beta 8
Posted on Mar 7, 2016 at 3:37 AM
Based on the comments on issues in github, it looks like this will be tought through some more. The ngAfterViewInit is useful to do things like integration with third party libraries, where we need a hook to know when the DOM is ready in order to trigger some external library on a given element. ... read more »
-
I Have A Fundamental Misunderstanding Of Change Detection In Angular 2 Beta 8
Posted on Mar 6, 2016 at 7:53 AM
@Ben, I've tried it and indeed doesn't work. At this point i have the impression that inside both lifecycle callback methods ngAfterViewInit and ngAfterContentInit we can't really do anything that mutates something displayed on the template ! As it will trigger change detection loops. There is th... read more »
-
I Have A Fundamental Misunderstanding Of Change Detection In Angular 2 Beta 8
Posted on Mar 4, 2016 at 2:44 PM
Forgot to post this, does it help ? -> http://blog.jhades.org/how-does-angular-2-change-detection-really-work/ with this its possible to debug this, although it for sure won't be easy... read more »
-
I Have A Fundamental Misunderstanding Of Change Detection In Angular 2 Beta 8
Posted on Mar 4, 2016 at 2:42 PM
You are not using lifecycle hooks, so i don't see how it could be your code doing this. You mention that you have been having change detection errors for weeks, thats strange. You are using the umd modules but that must not have anything to do with it. The problem might be that QueryList is not me... read more »