-
Notifications
You must be signed in to change notification settings - Fork 0
/
9-Jan.txt
85 lines (43 loc) · 1.35 KB
/
9-Jan.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Features of Angular 2
1) Two-way Data Binding
2) Powerful Routing support
3) Expressive HTML - Templates
4) Modular by DEsign
5) Built in Back End Support (Database, Log, WebService)
6) Active Community
--------------------------------------
Key differences b/w Angular 1 & Angular 2
1) Support for ES6
2) Componenets and COntrollers
3) Directives *ngFor
$) Data Bindings
5) $scopes are out
6) Filters are renamed to Pipes
7) Plaform specific Bootstrap
8) Services - Factory, Abstract Factory, Utilities, Singleton
9) Mobile Support
------------------------------------------
Angular Architecture
1) Component - Root, Feature
2) Directives - *ngFor, *ngIf, *ngIfelse, *ngSwitch + Custom Directives.........manipulation the DOM
3) Services - Singleton, Share the services obj
4) Pipes - + Custom Pipes
------------------------------------------------------------
Angular 2
Angular CLI
Install angular cli: npm install -g @angular/cli
ng -v
Create a Project Structure: ng new storeapp
cd storeapp
package.json
"boootstrap"
"font-awesome"
npm install
.angular-cli.json
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
"../node_modules/font-awesome/css/font-awesome.min.css"
]
Start the server
ng serve