Sfeir School AngularJs training 200

Last week, during two days, we assisted to the first AngularJs training (level advance) organized by Sfeir. The training took place in the Google Paris headquarters.

google

The training was a good mix of theory presentation and exercises practices. Adequate for all profiles of beginner to expert.

It was a great opportunity to discuss with other AngularJs geeks and get some feedbacks and best practices.

During those two intensive days, we cover the main AngularJs features :

  • Modules
  • Data bindings
  • The holy scope !
  • Events
  • Dependency injection
  • Connection with a rest API
  • Routing
  • Service
  • Form & validation
  • Services
  • Filters
  • Directives

What we notice :

  • We get good feedbacks on ui-router and Ionic.
  • For a big application, splitting functionalities is several
  • modules is a good practice.
  • Watch out to the users browsers (what Angular version can we use ?)
  • Ng-click is not the only solution, we can use a good old href !
  • Why not dive into the javascript language ? some void could be painful to write correctly our app !
  • Always write : $scope.$apply(function() {….my things to do…}) to force an angular refresh cycle (often use when using Jquery in a directive).
  • Minimize the binding is a good practice, the two ways binding costs a lot so when it’s possible use a bind-once.
  • In the view, you have access to  $event to pass to a function the sender, example : ng-click:”doSomeThing($event,myData)”