Sunday, May 21, 2017
This is a very short post about exporting component from angular module.
On your NgModule decorator, you should assign the declarations before your export member
otherwise when trying to use your exported components/ directives / pipes, you will encounter
an error message of unknown element / attribute.
Remember this, it can save you valuable time.
Tuesday, March 21, 2017
Yesterday I have add the honor of speaking at boostJs and I wish
to thank the organizers and the attendees who stayed until the last session (mine).
Slides from the presentation available here and the demo code is available here
Wednesday, June 22, 2016
Tuesday, June 14, 2016
When getting HTTP response from a REST API using Angular 2.0 HTTP client you will probably won’t mess around with your request headers. You’ll probably count on the service to return a JSON formatted response, subscribeto this response and go ahead using it’s .json() method which will use JSON.parse of your browser API. However, while this solution works fine using chrome, Firefox behave differently. While in chrome, the HTTP Accept headers will be */* , on Firefox it will put text/html,application/xhtml+xmlwhich basically will cause your server side to return its response in XML form. Therefore...