John
Member since Jan 31, 2016
- Profile: /members/13032-john.htm
- Comments: 7
Recent Blog Comments By John
-
Providing Default Values For The Safe Navigation Operator In Angular 2 Beta 8
Posted on Mar 6, 2016 at 3:17 PM
Thanks, didn't know that Angular 2 supports this syntax. But for this example you could just write this: {{ friend.traits?.isBFF || "not provided" }} and it will have the almost the same behavoir (except empty strings will also output "not provided").... read more »
-
Constructor vs. Property QueryList Injection In Angular 2 Beta 8
Posted on Mar 6, 2016 at 3:05 PM
I agree, it's quite difficult to map Ben's code to TS, because the parts of code are all over the place and absolutely not straighforward. Ben, you should really try TS, you don't even need to use types and other stuff if you don't want to (remember, TS is superset of JS).... read more »
-
I Have A Fundamental Misunderstanding Of Change Detection In Angular 2 Beta 8
Posted on Mar 6, 2016 at 2:49 PM
@Dwayne There are a few hiccups, but oh gosh is angular 2 glorious. The hardest part was setting up dev environment (angular cli will help with that), but after that, my productivity is really awesome and the there is a noticable difference with performance, event when I haven't tapped into OnPush ... read more »
-
Logging Error Streams To The Server In Angular 2 Beta 6
Posted on Mar 4, 2016 at 4:02 PM
This is really awesome, thanks for bringing this up! Seeing the usefulness and how easily this could be incorporated into the angular core, you could probably raise an issue on angular repo to discuss this.... read more »
-
Providing Custom View Templates For Components In Angular 2 Beta 6
Posted on Feb 27, 2016 at 4:46 PM
This is really cool, but I have one question - if you want to expose only the business logic, why not refactor stoptimer into a class and inject it into AppComponent's constructor with the same name "timer" (so that you even dont need to change the template from your example) ?... read more »
-
Unwrapping HTTP Responses Using RxJS Observables In Angular 2 Beta 6
Posted on Feb 25, 2016 at 1:13 PM
Thanks for the post. One nitpick dough - don't rely on "response" variable hoisting in the .catch handler. Just define it before "try-catch" block.... read more »
-
Attribute Directive Selectors And Outputs Cannot Have The Same Name In AngularJS 2 Beta 1
Posted on Jan 31, 2016 at 12:10 PM
Please stop calling it AngularJS 2. There is no AngularJS 2. It's called Angular 2.... read more »