Slides and demo codes from front-end IL meetup

Thursday, September 29, 2016

On Tuesday I have had the pleasure of speaking about Angular 2.0 change detection mechanism, at front-end IL meetup, after Ori Calvo's session about redux. I want to thank all attendees who stayed and waited with us until the lecture began and especially to the one who stayed until the end. Slides for this session can be found here. The code for that session can be found here ,  
no comments

Slides and demos from angularJs migration session.

Thursday, August 11, 2016

Yesterday, I've had the honour and pleasure of speaking at Front-End.IL meetup   about angularJs code migration from angular 1.x to angular 2.0. I want to thank all attendees for their participation and feedbacks. The code presented on this meetup can be found here and the slides may be watched here Thanks again for your participation, I hope to see you soon in other meetup sessions.  
no comments

(Update) Finding current URL with Angular 2.0 Routing

Thursday, June 23, 2016

Previously I’ve posted about finding current URL with Angular 2.0 Routing which was suitable for rc-1. On Angular 2.0 rc-3, the angular router (alpha 3.0.0) has been added to the repository with much easierAPI for getting the current URL. Let’s have a look at the following code (Typescript) 1: constructor(private _router:Router){ 2: 3: } 4:  5: ngOnInit():any { 6: this._router.subscribe(event => { 7:...
no comments

Angular 2.0 Http client quick tip for firefox

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...
one comment

Finding current URL with Angular 2.0 Routing

Tuesday, June 7, 2016

  For an application built with AngularJs 2.0 (rc1) I wanted to do one simple thing: To highlightthe current active navigation  bar item. However, I’ve had to do it with the new angular router, the one that currently lacks documentation. So after a few searches online and digging through the router object I’ve reached the solution I want to share.   Let’s start with the solution itself: (Taken from the application’s entry component) 1: constructor(private router:Router){ 2: router.changes.subscribe(route =>{ 3: ...
2 comments

Angular 1.x–Finding error in module using small recursion

Monday, April 25, 2016

Recently, to have an application angular 2.0 ready I’ve divided an angular 1.5 application to small modules. Of course this process wasn’t a straight forward one, however finding where there is a missing or error module was critical, otherwise I’ll get an error message on the main module I have a little to do with. Therefore, I’ve built a small recursive function, using the module.requires array property (available from v1.2) , which I want to share: 1: function getModule(moduleName){ 2: console.log('Getting module ' + moduleName); 3: var...
one comment

My AngularJs workshop at Sela’s SDP

Monday, December 29, 2014

Yesterday, I delivered a full day workshop about angularJs . I wish to thank all attendees. You may view the presentation here Demo code + server side components can be downloaded here The presentation was based on Sela’s former workshop made my Moshe Levyand contained few updates.
no comments