@kokkisajee
www.sajeetharan.com
Challenge for today!
"Life is an education. It is learned
mostly through what you discover on your own and not through what others tell you"
- - Terry Brooks, The Skaar Invasion
Choosing your Front end Framework
👍We will dive into some core concepts
👍It won’t teach you everything, But it will help you learn what you need to know when deciding on framework ( 3 'W's)
DISCLAIMER:
A framework for web front-end app
A platform for integrated development
An ecosystem for developers
2016
Future ready
$scope
ng-if
ng-app
ng-model
mobile
oriented
better
performance
x12
Angular 1.x vs Angular
Stable and performant
2017
2021
Language service && Tooling
Smaller, faster, easier
Typescript 4.4,100%Ivy support
Angular as a Framework
Angular As an Ecosystem
Go here - > madewithangular.com
600+ Google projects!
120+ GDES , 700+ Communities , 69k Contributors
Building Blocks of Angular
Angular App Structure
Our application is divided in two parts. -Application itself & Application bootstrap
Our modules, routes, components & services live here.
We bootstrap our app depending on what platform were developing for, and add any required polyfills & vendors.
Typescript config, npm packages, scripts, webpack config, express server, and so on...
ngular
Life Cycle
Router
ngular
<router-outlet></router-outlet>
<a [routerLink]="/world1"></a>
Set the Route
This is the container where the component or module indicated by the router will be loaded
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why Angular
1. Why is this relevant to you?
2. Some context please!
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
👇🏻
3. When is Angular suitable?
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
“I don’t want to refactor this app again in 6 months”
A real client
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
"I need the thing to work seamlessly in IE"
A real client
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
"The features of the web app and the mobile app are similar, do not write it twice"
A real client
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why I chose Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why I chose Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why I chose Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why I chose Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why I chose Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why I chose Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why I chose Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why I chose Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
“Google has more than 600 apps written in Angular”
Why I chose Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why I chose Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Why I chose Angular
1. Why is this relevant to you?
2. Some context please!
3. When is Angular suitable?
4. Technical Examples!
5. When is Angular not ideal?
🍺🍺🍺
Download
Install
Run!
https://nodejs.org/en/download/
npm install -g @angular/cli@latest
ng new ngStoreApp
cd ngStoreApp
npm start
Architecture
Should have Single Responsibility
Should be Simple
Should be Small
Should be Encapsulated
Should use Composition
$ ng build --prod
$ ng build --prod --build-optimizer=true
$ ng build --prod --source-map
$ >npm i -g source-map-explorer
$> source-map-explorer dist/angular-workshop/main.bundle.js
LIFT
Where to go from here
- Tweet @kokkisajee
- Volunteer Ng-SriLanka
- Slides : https://slides.com/sajeetharan/sneak-peak-angular
- Demo : ngStoreApp