Please enable JavaScript.
Coggle requires JavaScript to display documents.
Angular 2 (Components View (Modules: Each Angular 2 application needs to…
Angular 2
Components View
Component
Templates
Metadata
Services
Modules:
Each Angular 2 application needs to have one Angular Root Module
Class
Template
Metadata
Nessecery tools for Agular 2
Git
Npm:
https://www.npmjs.com/
Editor: Visual Code
https://github.com/angular/angular-cli
Relase:
https://github.com/angular/angular-cli/releases
Directives
NgFor
NgIf
NgClass
NgSwitch
NgNonBindable
Features View
Components
:
Components help to build the applications into many modules.
TypeScript
Services
:
Services are a set of code that can be shared by different components of an application
Hosting to Firebase
Create Angular App by Angular CLI
1.1 npm install -g
angular/cli
1.2 ng new projectname
1.3 cd projectname
ng serve
ng build --prod
1.0 npm install -g angular2-cli
npm install -g firebase-tools
2.1 firebase login
npm install firebase angularfire2 --save
2.2 firebase init
2.2.1 Select the option Hosting: config and deploy firebase Hosting site
2.2.2 Select SPA app and rewrite all URLs to index.html
Don't overwrite file index.html
2.3 firebase deploy