Angular tutorial selection
Last updated
Was this helpful?
Last updated
Was this helpful?
Here is a curated list of some good tutorials we used to learn the version 2 of angular.
How to integrate web components in angular
Official angular 2 tutorial
Light weight documentation with both ES6 and Angular 2 made by Ionic team
132+ Video tutorial on specific pratical cases
nicely focused tutorials on a medium hoste dev site
Very well done and free tutorial on angular The good aspect is that the tutorials have both a video a a detailed instruction. And that all the learnings are well size to be progressive.
Custom text area, input... data binding
Edit forms value programatically : setValue and patchValue
Using Angular2 model driven forms
Introduction to Angular 2 Forms - Template Driven vs Model Driven or Reactive Forms
Reactive forms
Example of different types of fields
Event and @output decorator
Change detection in Angular 2
How to replicate $scope.$emit with global events ? More technics that official ways
Children view
Dump / Smart component architecture :
A way to organize component to differentiate presentational component highly reusable and intelligent component that actually handle the logic and specific stuff
Difference between constructor and ngOnInit
Different ways for communication between components :
With input with a setter
With input via ngChanges detection
With @viewchild that allow to manipulate child methods
With a service and observable subject
How to use the angular 2 renderer service to manipulate the DOM in a way all platforms (server, browser, mobile.. can accept)
How to use window like with the good old $window angular 1
In this tuto, you learn how to do a wrapper of window to inject in with DI only if usable (in the browser)
Structural (ngIf...or custom) or attributes (ngClass... or custom) directives
ng-show / ng-hide in angular 2 : the angular 2 solution is to bind to hidden prop but there is some issue so read this article to decide which practice to use
Angular 2 adopted this new concept of observable which basically is a more advanced form of promise. RxJs is the implementation of Observable used by angular which is being developed by Microsoft.
This post list 3 common problems with can have with observable.
Pitfall 1 : not subscribing to an observable is similar to having a function but not exucuting it
An observable itself is just a definition of a way to handle a stream of values. We can think of it as something close to a function. Creating an observable is somewhat similar to declaring a function, the function itself is just a declaration. Calling the function is something entirely different, as defining a function does not execute its code.
We need to call the function in order for something to happen, and that is also the case with an Observable: we need to subscribe to it in order for it to work!
Revision of what ngFor can do
how to get the index
how to track by another value that default (by object Identity)
using odd, even, last, first for dynamic class naming
ngFor by default tracks list items using object identity. This means that if you build a list of new objects from scratch with the exact same values as the previous list and pass this newly built list to ngFor, Angular will not be able to tell that a given list item is already present or not.
Organize your code in a modular way. Import a module instead of importing a dozen of files (javascript modules). Despite of the use of ES6 modules in angular, angular modules @ngModules are still useful to bundle a feature or a shared utility together.
The angular university tutorial on ngModule
the official style guide module section
Clear and recent article on module and their differen types
Exploring JS / Full online book on javascripting with extensive doc on ES6
Detailed explanation about how the modules resolution works for the typescript compiler. How typescript find a module when we write something like :
A installation guide using JSPM / Typescript and System.js
The ultimate guide of angular CLI
What is new in angular 4
Automatical changelogs
)
Allow to use angular material theming abstraction (you do not need to use other aspect of material if you do not want). Though it complicate a bit the scss handling, it is a great enhancement for let's say use case where you want to customize your app for your clients, or allow the user to change it's profile visual aspect. Angular material have an opinated but intelligent way of handling colors, that is portable is different environment : mobile, desktop....
Guide to forms in angular 2
Angular forms beyond the basics Some more advanced form topics like automatically adding class for bootstrap or async validation...
How to define a inner child component property on-change to allow pass observable as input.
Component inheritance introduced in 2.3
Building a data store with observable
The Doc of observables transform operator
Good introduction to the reactive architecture
The ng module FAQ is a good place to better understand the ngModules API fine tuning
Difference between decorator and annotation
How to inject window in a service to keep it compatible with angular dependency injection philosophy
Simple tutorial to do a custom pipe available in its components then make it available application wide
In depth practical article on the new angular 2 router
How to use guards to prevent access to some pages
Named router oulet (same as UI router)
An interceptor for angular 4 Mains changes : interceptor, json as a default reponse
Events that trigger at route change start, end...
Detailed post that explained the principle of firebase, why it is a good solution for BaaS application and allow to develop faster. Then it describe the integration in Angular2 with the angular fire library
The official docs ?
The doc in the project
Demystifying AOT : Nice slides that present AOT as an easy thing ...
a bit old but clear
[
Conventional commits a standard for commits
using-zones-in-angular-for-better-performance.html)
Example of For exemple it intercept and d things when request have a status code of let's say 403
Global error handler
Error handler by extending a