Categories
AngularJS

Angular 2 Cheat Sheet

This is not the complete cheat sheet of all the things, but I think these are very useful snippets for anyone who is beginner.

Categories
AngularJS

Angular 2: Typescript Configuration File tsconfig.json

tsconfig.json file indicates that the folder is the root of a TypeScript project. Most browsers understand ECMAScript 5 (ES5). Also we need to generate Map files, that will assist us with debugging. For compiling purposes and to have decorators run properly in our application we need to set (“emitDecoratorMetadata”: true) and (“experimentalDecorators”: true). Exclude option tells […]

Categories
AngularJS

Angular 2: How to set up routing

In order to set up routing in Angular there are few setup steps. Include the Angular 2 router script Define the base element Register ROUTER_PROVIDERS Add the Angular 2 Router script to your index.html

Categories
AngularJS

Angular 2: Structural Directives

So there are few directives that I would like to discuss. *ngIf and *ngFor *ngIf – if expression is evaluated as a true or false value

Categories
AngularJS

How to set up an Angular 2 Application

In order to set up Angular 2 Application, few things need to be done to prepare the environment.