SlideShare a Scribd company logo
ANGULAR 2 CRASH
COURSE
P R E S E N T E D B Y : E L I S H A K R A M E R
WHAT TO INSTALL
Please install the following three programs unto your local
computer (as a preriquisite for the following course).
TONIGHT'S AGENDA
View Code on Github
Angular 2 Spotify App
See the Github "ReadMe" file for more info...
We will begin by "git cloning" an Angular 2
Spotify App.
To spark your curiosity by exposing you to
the fundamentals of Angular 2, and
sharing with you some fantastic Ng-2 apps
with even better tutorials.
Table of contents
Demistifying Components
The Spotify API
Douglas Crockford and Old-School JS
Ng2 HTML Syntax
RxJS Observables and Streams
Fat Arrows of ES6
Redux Definition
Links to other projects:
Auth0 For Ng2 Authentication
Twitter written in Ng2
Reddit written in Ng2
Kudos to the author
This talk is based on a project by
Douglas Traversy, called "Build An
Angular 2 Spotify App". It's a 7-part
video series on YouTube. Click here to
view it.
The 10,000 hour rule
Malcolm Gladwell says: "It takes 10,000
hours to become an expert at
anything."
Let's begin this journey together
TEXT EDITOR
Note: If you don't have good code
highlighting with your text editor, you
can download either Visual Studio Code
(by Microsoft) or Atom for Angular 2
Color-Highlighting.
A word of warning
Practice your wax-on, wax-off.
i.e. study methodologically
From Angular 2 Docs
read more here
Understanding the Spotify API
COMPONENTS
Components are the basic building blocks of Angular applications. A component
controls a portion of the screen — a view — through its associated template.
Angular Modules help to organize an application into cohesive blocks of functionalities and
extend it with capabilities from external libraries. The AppComponent hosts the client user
experience. Main idea: stuff all the other components and dependencies in here.
app.component.ts
or:
app.module.ts
album.component.ts
Douglas Crockford (developer of the JS language), lays the
foundational premise:
"JavaScript is fundamentally about objects. Arrays are objects.
Functions are objects. Objects are objects. So what are objects?
Objects are collections of name-value pairs. The names are
strings, and the values are strings, numbers, booleans, and
objects (including arrays and functions)...
If a value is a function, we can consider it a method. When a
method of an object is invoked, the this variable is set to the
object. The method can then access the instance variables
through the this variable.
Objects can be produced by constructors, which are functions
which initialize objects...
read more at: http://javascript.crockford.com/private.html
To understand our ng2 component files, lets explore this codepen
together:
Classes, Constructors, and 'this'
in Old-School JS
"We can configure the selector our Component will look for to
instantiate itself (like <my-component>), and also set the template...
When our component is “instantiated” and rendered on the page, we
have an instance of our component. We can modify the instance data
of that component, call methods on it, and pass it around to other
components. It’s just an object!"
Ionic blog, (April 13, 2015)
Here's where we tie it all back to
Angular 2
Read more at: http://blog.ionic.io/angular-2-series-components
The Search
Component
(.ts file)
The HTML of the Search Component
"RxJS is a third party library, endorsed by Angular...
All of the Developer Guide samples have installed the RxJS npm
package because observables are used widely in Angular
applications. This app needs it when working with the HTTP
client."
From Angular 2 Docs
Read more at: https://angular.io/docs/ts/latest/guide/server-
communication.html
Rxjs is all about playing with data streams.
We're gonna cover three of these possibilities.
Angular  2 Crash Course
rxjs in action
Stream created out of an array and looped through via the subscribe() function
Understanding rxjs within the Spotify application
Step 1: Click this 'tutorial' button. It is an rxjs tutorial (written by
someone who was part of the Angular 2 Docs Authoring team):
Step 2: Use the code from the following codepen to experiment
in your chrome dev console.
The map operator lets us project the payload of the Observable into
something else. Back in your spotify app, have a look within the 'services'
folder at the 'spotify.service.ts' file. Notice that we're using the map
operator for all of the app's core features! Mucho cool!
All's well and good, but what's with the fat
arrows all over the place?
"By using arrow function we avoid having to type
the function keyword, return keyword (it’s implicit
in arrow functions), and curly brackets."
Read more here: "ES6 Arrow Functions: The New Fat & Concise Syntax
in JavaScript"
=>
Notice that our 'SearchComponent' saves the response in a variable
called 'searchRes'. Go back to your 'search.component.html' file now.
Turns out that's the array that 'ngfor' is looping through and pasting to
the page. Finally, we've come full circle.
Add features by playing with the Spotify Api:
UP NEXT: Other fascinating Angular 2 projects
a) Auth0
GETTING STARTED
a) Create your own Auth0 account at:
https://auth0.com/
b) Or you can simply clone this repo here:
https://github.com/ElishaKay/Angular-2-Auth-App
c) Watch the youtube tutorial here:
https://www.youtube.com/watch?v=i_dHFvi1BJc
If you clone the github repo, you can fill in your account
credentials here:
b) 5 Redux Examples
(including twitter clone)
a) View the demo here:
http://redux.jessepinho.com/#/twitter
b) Clone the repo here:
https://github.com/ElishaKay/Redux-and-Angular-2
c) Watch the youtube tutorial here:
http://www.youtube.com/watch?v=Q9iSjFbPjPo&t=12m38s
GETTING STARTED
The fundamental premise of redux is
that the entire state of the application
is represented in a single JavaScript
object called a store, or application
store, that can be acted upon using
special functions called reducers.
Redux in a Nutshell
See the live twitter example for more info...
c) Reddit Project
Check out the github repo
by clicking here.
Check out the awesome ebook dedicated to explaining the Reddit
project by clicking here. please note, the Reddit explanation
begins on page 29.
Stay in touch,
E V E R Y T H I N G J S
Comment on Meetup
Ad

More Related Content

What's hot (20)

Angular2 with TypeScript
Angular2 with TypeScript Angular2 with TypeScript
Angular2 with TypeScript
Rohit Bishnoi
 
Migrating an application from Angular 1 to Angular 2
Migrating an application from Angular 1 to Angular 2 Migrating an application from Angular 1 to Angular 2
Migrating an application from Angular 1 to Angular 2
Ross Dederer
 
Angular Weekend
Angular WeekendAngular Weekend
Angular Weekend
Troy Miles
 
Angular 2 : le réveil de la force
Angular 2 : le réveil de la forceAngular 2 : le réveil de la force
Angular 2 : le réveil de la force
Nicolas PENNEC
 
Angular 2 Essential Training
Angular 2 Essential Training Angular 2 Essential Training
Angular 2 Essential Training
Patrick Schroeder
 
Angular 1.x vs 2 - In code level
Angular 1.x vs 2 - In code levelAngular 1.x vs 2 - In code level
Angular 1.x vs 2 - In code level
Anuradha Bandara
 
Getting Started with Angular 2
Getting Started with Angular 2Getting Started with Angular 2
Getting Started with Angular 2
FITC
 
Commit University - Exploring Angular 2
Commit University - Exploring Angular 2Commit University - Exploring Angular 2
Commit University - Exploring Angular 2
Commit University
 
Introduction to angular 2
Introduction to angular 2Introduction to angular 2
Introduction to angular 2
Dor Moshe
 
Angular 2: What's New?
Angular 2: What's New?Angular 2: What's New?
Angular 2: What's New?
jbandi
 
Angular 2 - The Next Framework
Angular 2 - The Next FrameworkAngular 2 - The Next Framework
Angular 2 - The Next Framework
Commit University
 
Angular2
Angular2Angular2
Angular2
Software Infrastructure
 
Angular2
Angular2Angular2
Angular2
Oswald Campesato
 
2 years of angular: lessons learned
2 years of angular: lessons learned2 years of angular: lessons learned
2 years of angular: lessons learned
Dirk Luijk
 
An introduction to Angular2
An introduction to Angular2 An introduction to Angular2
An introduction to Angular2
Apptension
 
Angular1x and Angular 2 for Beginners
Angular1x and Angular 2 for BeginnersAngular1x and Angular 2 for Beginners
Angular1x and Angular 2 for Beginners
Oswald Campesato
 
The productive developer guide to Angular 2
The productive developer guide to Angular 2The productive developer guide to Angular 2
The productive developer guide to Angular 2
Maurice De Beijer [MVP]
 
Angular js 2
Angular js 2Angular js 2
Angular js 2
Ran Wahle
 
Angular 2 - Better or worse
Angular 2 - Better or worseAngular 2 - Better or worse
Angular 2 - Better or worse
Vladimir Georgiev
 
Tech Webinar: Angular 2, Introduction to a new framework
Tech Webinar: Angular 2, Introduction to a new frameworkTech Webinar: Angular 2, Introduction to a new framework
Tech Webinar: Angular 2, Introduction to a new framework
Codemotion
 
Angular2 with TypeScript
Angular2 with TypeScript Angular2 with TypeScript
Angular2 with TypeScript
Rohit Bishnoi
 
Migrating an application from Angular 1 to Angular 2
Migrating an application from Angular 1 to Angular 2 Migrating an application from Angular 1 to Angular 2
Migrating an application from Angular 1 to Angular 2
Ross Dederer
 
Angular Weekend
Angular WeekendAngular Weekend
Angular Weekend
Troy Miles
 
Angular 2 : le réveil de la force
Angular 2 : le réveil de la forceAngular 2 : le réveil de la force
Angular 2 : le réveil de la force
Nicolas PENNEC
 
Angular 2 Essential Training
Angular 2 Essential Training Angular 2 Essential Training
Angular 2 Essential Training
Patrick Schroeder
 
Angular 1.x vs 2 - In code level
Angular 1.x vs 2 - In code levelAngular 1.x vs 2 - In code level
Angular 1.x vs 2 - In code level
Anuradha Bandara
 
Getting Started with Angular 2
Getting Started with Angular 2Getting Started with Angular 2
Getting Started with Angular 2
FITC
 
Commit University - Exploring Angular 2
Commit University - Exploring Angular 2Commit University - Exploring Angular 2
Commit University - Exploring Angular 2
Commit University
 
Introduction to angular 2
Introduction to angular 2Introduction to angular 2
Introduction to angular 2
Dor Moshe
 
Angular 2: What's New?
Angular 2: What's New?Angular 2: What's New?
Angular 2: What's New?
jbandi
 
Angular 2 - The Next Framework
Angular 2 - The Next FrameworkAngular 2 - The Next Framework
Angular 2 - The Next Framework
Commit University
 
2 years of angular: lessons learned
2 years of angular: lessons learned2 years of angular: lessons learned
2 years of angular: lessons learned
Dirk Luijk
 
An introduction to Angular2
An introduction to Angular2 An introduction to Angular2
An introduction to Angular2
Apptension
 
Angular1x and Angular 2 for Beginners
Angular1x and Angular 2 for BeginnersAngular1x and Angular 2 for Beginners
Angular1x and Angular 2 for Beginners
Oswald Campesato
 
The productive developer guide to Angular 2
The productive developer guide to Angular 2The productive developer guide to Angular 2
The productive developer guide to Angular 2
Maurice De Beijer [MVP]
 
Angular js 2
Angular js 2Angular js 2
Angular js 2
Ran Wahle
 
Tech Webinar: Angular 2, Introduction to a new framework
Tech Webinar: Angular 2, Introduction to a new frameworkTech Webinar: Angular 2, Introduction to a new framework
Tech Webinar: Angular 2, Introduction to a new framework
Codemotion
 

Viewers also liked (14)

Angular 2
Angular 2Angular 2
Angular 2
Travis van der Font
 
Angular 2 overview
Angular 2 overviewAngular 2 overview
Angular 2 overview
Jesse Warden
 
Angular 2 - Core Concepts
Angular 2 - Core ConceptsAngular 2 - Core Concepts
Angular 2 - Core Concepts
Fabio Biondi
 
Angular 2
Angular 2Angular 2
Angular 2
Alexandre Marreiros
 
Jws masterclass progressive web apps
Jws masterclass progressive web appsJws masterclass progressive web apps
Jws masterclass progressive web apps
Alexandre Marreiros
 
Angular 2 vs React. What to chose in 2017?
Angular 2 vs React. What to chose in 2017?Angular 2 vs React. What to chose in 2017?
Angular 2 vs React. What to chose in 2017?
TechMagic
 
Angular 2 for Java Developers
Angular 2 for Java DevelopersAngular 2 for Java Developers
Angular 2 for Java Developers
Yakov Fain
 
Angular2 workshop
Angular2 workshopAngular2 workshop
Angular2 workshop
Nir Kaufman
 
Reactive programming in Angular 2
Reactive programming in Angular 2Reactive programming in Angular 2
Reactive programming in Angular 2
Yakov Fain
 
The Customer's Online Journey
The Customer's Online JourneyThe Customer's Online Journey
The Customer's Online Journey
Elisha Kramer
 
Build Features, Not Apps
Build Features, Not AppsBuild Features, Not Apps
Build Features, Not Apps
Natasha Murashev
 
Intro to Angular.JS Directives
Intro to Angular.JS DirectivesIntro to Angular.JS Directives
Intro to Angular.JS Directives
Christian Lilley
 
Xamarin.forms
Xamarin.forms Xamarin.forms
Xamarin.forms
Alexandre Marreiros
 
Pt xug xamarin pratices on big ui consumer apps
Pt xug  xamarin pratices on big ui consumer appsPt xug  xamarin pratices on big ui consumer apps
Pt xug xamarin pratices on big ui consumer apps
Alexandre Marreiros
 
Angular 2 overview
Angular 2 overviewAngular 2 overview
Angular 2 overview
Jesse Warden
 
Angular 2 - Core Concepts
Angular 2 - Core ConceptsAngular 2 - Core Concepts
Angular 2 - Core Concepts
Fabio Biondi
 
Jws masterclass progressive web apps
Jws masterclass progressive web appsJws masterclass progressive web apps
Jws masterclass progressive web apps
Alexandre Marreiros
 
Angular 2 vs React. What to chose in 2017?
Angular 2 vs React. What to chose in 2017?Angular 2 vs React. What to chose in 2017?
Angular 2 vs React. What to chose in 2017?
TechMagic
 
Angular 2 for Java Developers
Angular 2 for Java DevelopersAngular 2 for Java Developers
Angular 2 for Java Developers
Yakov Fain
 
Angular2 workshop
Angular2 workshopAngular2 workshop
Angular2 workshop
Nir Kaufman
 
Reactive programming in Angular 2
Reactive programming in Angular 2Reactive programming in Angular 2
Reactive programming in Angular 2
Yakov Fain
 
The Customer's Online Journey
The Customer's Online JourneyThe Customer's Online Journey
The Customer's Online Journey
Elisha Kramer
 
Intro to Angular.JS Directives
Intro to Angular.JS DirectivesIntro to Angular.JS Directives
Intro to Angular.JS Directives
Christian Lilley
 
Pt xug xamarin pratices on big ui consumer apps
Pt xug  xamarin pratices on big ui consumer appsPt xug  xamarin pratices on big ui consumer apps
Pt xug xamarin pratices on big ui consumer apps
Alexandre Marreiros
 
Ad

Similar to Angular 2 Crash Course (20)

Angular kickstart slideshare
Angular kickstart   slideshareAngular kickstart   slideshare
Angular kickstart slideshare
SaleemMalik52
 
AngularJS2 / TypeScript / CLI
AngularJS2 / TypeScript / CLIAngularJS2 / TypeScript / CLI
AngularJS2 / TypeScript / CLI
Domenico Rutigliano
 
Angular
AngularAngular
Angular
TejinderMakkar
 
ANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 schANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 sch
kannikadg
 
Introduction to Groovy Monkey
Introduction to Groovy MonkeyIntroduction to Groovy Monkey
Introduction to Groovy Monkey
jervin
 
Getting Started with React, When You’re an Angular Developer
Getting Started with React, When You’re an Angular DeveloperGetting Started with React, When You’re an Angular Developer
Getting Started with React, When You’re an Angular Developer
Fabrit Global
 
Android application architecture
Android application architectureAndroid application architecture
Android application architecture
Romain Rochegude
 
Lunch and learn as3_frameworks
Lunch and learn as3_frameworksLunch and learn as3_frameworks
Lunch and learn as3_frameworks
Yuri Visser
 
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
Alex Ershov
 
IPT angular2 typescript SPA 2016
IPT angular2 typescript SPA 2016IPT angular2 typescript SPA 2016
IPT angular2 typescript SPA 2016
Trayan Iliev
 
Fewd week4 slides
Fewd week4 slidesFewd week4 slides
Fewd week4 slides
William Myers
 
Angular interview questions
Angular interview questionsAngular interview questions
Angular interview questions
Goa App
 
Integrating TypeScript with popular frameworks like React or Angular.pdf
Integrating TypeScript with popular frameworks like React or Angular.pdfIntegrating TypeScript with popular frameworks like React or Angular.pdf
Integrating TypeScript with popular frameworks like React or Angular.pdf
MobMaxime
 
Learn Angular 9/8 In Easy Steps
Learn Angular 9/8 In Easy Steps Learn Angular 9/8 In Easy Steps
Learn Angular 9/8 In Easy Steps
Ahmed Bouchefra
 
Nt1310 Unit 3 Language Analysis
Nt1310 Unit 3 Language AnalysisNt1310 Unit 3 Language Analysis
Nt1310 Unit 3 Language Analysis
Nicole Gomez
 
Gwt and JSR 269's Pluggable Annotation Processing API
Gwt and JSR 269's Pluggable Annotation Processing APIGwt and JSR 269's Pluggable Annotation Processing API
Gwt and JSR 269's Pluggable Annotation Processing API
Arnaud Tournier
 
Introduction and hacking OpenStack, Pycon India
Introduction and hacking OpenStack,  Pycon IndiaIntroduction and hacking OpenStack,  Pycon India
Introduction and hacking OpenStack, Pycon India
Atul Jha
 
Nativescript with angular 2
Nativescript with angular 2Nativescript with angular 2
Nativescript with angular 2
Christoffer Noring
 
Top 7 Angular Best Practices to Organize Your Angular App
Top 7 Angular Best Practices to Organize Your Angular AppTop 7 Angular Best Practices to Organize Your Angular App
Top 7 Angular Best Practices to Organize Your Angular App
Katy Slemon
 
Web worker in your angular application
Web worker in your angular applicationWeb worker in your angular application
Web worker in your angular application
Suresh Patidar
 
Angular kickstart slideshare
Angular kickstart   slideshareAngular kickstart   slideshare
Angular kickstart slideshare
SaleemMalik52
 
ANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 schANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 sch
kannikadg
 
Introduction to Groovy Monkey
Introduction to Groovy MonkeyIntroduction to Groovy Monkey
Introduction to Groovy Monkey
jervin
 
Getting Started with React, When You’re an Angular Developer
Getting Started with React, When You’re an Angular DeveloperGetting Started with React, When You’re an Angular Developer
Getting Started with React, When You’re an Angular Developer
Fabrit Global
 
Android application architecture
Android application architectureAndroid application architecture
Android application architecture
Romain Rochegude
 
Lunch and learn as3_frameworks
Lunch and learn as3_frameworksLunch and learn as3_frameworks
Lunch and learn as3_frameworks
Yuri Visser
 
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
Alex Ershov
 
IPT angular2 typescript SPA 2016
IPT angular2 typescript SPA 2016IPT angular2 typescript SPA 2016
IPT angular2 typescript SPA 2016
Trayan Iliev
 
Angular interview questions
Angular interview questionsAngular interview questions
Angular interview questions
Goa App
 
Integrating TypeScript with popular frameworks like React or Angular.pdf
Integrating TypeScript with popular frameworks like React or Angular.pdfIntegrating TypeScript with popular frameworks like React or Angular.pdf
Integrating TypeScript with popular frameworks like React or Angular.pdf
MobMaxime
 
Learn Angular 9/8 In Easy Steps
Learn Angular 9/8 In Easy Steps Learn Angular 9/8 In Easy Steps
Learn Angular 9/8 In Easy Steps
Ahmed Bouchefra
 
Nt1310 Unit 3 Language Analysis
Nt1310 Unit 3 Language AnalysisNt1310 Unit 3 Language Analysis
Nt1310 Unit 3 Language Analysis
Nicole Gomez
 
Gwt and JSR 269's Pluggable Annotation Processing API
Gwt and JSR 269's Pluggable Annotation Processing APIGwt and JSR 269's Pluggable Annotation Processing API
Gwt and JSR 269's Pluggable Annotation Processing API
Arnaud Tournier
 
Introduction and hacking OpenStack, Pycon India
Introduction and hacking OpenStack,  Pycon IndiaIntroduction and hacking OpenStack,  Pycon India
Introduction and hacking OpenStack, Pycon India
Atul Jha
 
Top 7 Angular Best Practices to Organize Your Angular App
Top 7 Angular Best Practices to Organize Your Angular AppTop 7 Angular Best Practices to Organize Your Angular App
Top 7 Angular Best Practices to Organize Your Angular App
Katy Slemon
 
Web worker in your angular application
Web worker in your angular applicationWeb worker in your angular application
Web worker in your angular application
Suresh Patidar
 
Ad

Recently uploaded (20)

Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Orangescrum
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Andre Hora
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
Andre Hora
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Ranjan Baisak
 
Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025
kashifyounis067
 
WinRAR Crack for Windows (100% Working 2025)
WinRAR Crack for Windows (100% Working 2025)WinRAR Crack for Windows (100% Working 2025)
WinRAR Crack for Windows (100% Working 2025)
sh607827
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and CollaborateMeet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Maxim Salnikov
 
Solidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license codeSolidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license code
aneelaramzan63
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AIScaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
danshalev
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Douwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License codeDouwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License code
aneelaramzan63
 
Expand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchangeExpand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchange
Fexle Services Pvt. Ltd.
 
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Orangescrum
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Andre Hora
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
Andre Hora
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Ranjan Baisak
 
Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025
kashifyounis067
 
WinRAR Crack for Windows (100% Working 2025)
WinRAR Crack for Windows (100% Working 2025)WinRAR Crack for Windows (100% Working 2025)
WinRAR Crack for Windows (100% Working 2025)
sh607827
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and CollaborateMeet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Maxim Salnikov
 
Solidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license codeSolidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license code
aneelaramzan63
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AIScaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
danshalev
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Douwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License codeDouwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License code
aneelaramzan63
 
Expand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchangeExpand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchange
Fexle Services Pvt. Ltd.
 

Angular 2 Crash Course

  • 1. ANGULAR 2 CRASH COURSE P R E S E N T E D B Y : E L I S H A K R A M E R
  • 2. WHAT TO INSTALL Please install the following three programs unto your local computer (as a preriquisite for the following course).
  • 3. TONIGHT'S AGENDA View Code on Github Angular 2 Spotify App See the Github "ReadMe" file for more info... We will begin by "git cloning" an Angular 2 Spotify App. To spark your curiosity by exposing you to the fundamentals of Angular 2, and sharing with you some fantastic Ng-2 apps with even better tutorials.
  • 4. Table of contents Demistifying Components The Spotify API Douglas Crockford and Old-School JS Ng2 HTML Syntax RxJS Observables and Streams Fat Arrows of ES6 Redux Definition Links to other projects: Auth0 For Ng2 Authentication Twitter written in Ng2 Reddit written in Ng2
  • 5. Kudos to the author This talk is based on a project by Douglas Traversy, called "Build An Angular 2 Spotify App". It's a 7-part video series on YouTube. Click here to view it.
  • 6. The 10,000 hour rule Malcolm Gladwell says: "It takes 10,000 hours to become an expert at anything." Let's begin this journey together
  • 7. TEXT EDITOR Note: If you don't have good code highlighting with your text editor, you can download either Visual Studio Code (by Microsoft) or Atom for Angular 2 Color-Highlighting.
  • 8. A word of warning
  • 9. Practice your wax-on, wax-off. i.e. study methodologically
  • 10. From Angular 2 Docs read more here
  • 12. COMPONENTS Components are the basic building blocks of Angular applications. A component controls a portion of the screen — a view — through its associated template.
  • 13. Angular Modules help to organize an application into cohesive blocks of functionalities and extend it with capabilities from external libraries. The AppComponent hosts the client user experience. Main idea: stuff all the other components and dependencies in here. app.component.ts or: app.module.ts
  • 15. Douglas Crockford (developer of the JS language), lays the foundational premise: "JavaScript is fundamentally about objects. Arrays are objects. Functions are objects. Objects are objects. So what are objects? Objects are collections of name-value pairs. The names are strings, and the values are strings, numbers, booleans, and objects (including arrays and functions)... If a value is a function, we can consider it a method. When a method of an object is invoked, the this variable is set to the object. The method can then access the instance variables through the this variable. Objects can be produced by constructors, which are functions which initialize objects... read more at: http://javascript.crockford.com/private.html
  • 16. To understand our ng2 component files, lets explore this codepen together: Classes, Constructors, and 'this' in Old-School JS
  • 17. "We can configure the selector our Component will look for to instantiate itself (like <my-component>), and also set the template... When our component is “instantiated” and rendered on the page, we have an instance of our component. We can modify the instance data of that component, call methods on it, and pass it around to other components. It’s just an object!" Ionic blog, (April 13, 2015) Here's where we tie it all back to Angular 2 Read more at: http://blog.ionic.io/angular-2-series-components
  • 19. The HTML of the Search Component
  • 20. "RxJS is a third party library, endorsed by Angular... All of the Developer Guide samples have installed the RxJS npm package because observables are used widely in Angular applications. This app needs it when working with the HTTP client." From Angular 2 Docs Read more at: https://angular.io/docs/ts/latest/guide/server- communication.html
  • 21. Rxjs is all about playing with data streams. We're gonna cover three of these possibilities.
  • 23. rxjs in action Stream created out of an array and looped through via the subscribe() function
  • 24. Understanding rxjs within the Spotify application Step 1: Click this 'tutorial' button. It is an rxjs tutorial (written by someone who was part of the Angular 2 Docs Authoring team): Step 2: Use the code from the following codepen to experiment in your chrome dev console.
  • 25. The map operator lets us project the payload of the Observable into something else. Back in your spotify app, have a look within the 'services' folder at the 'spotify.service.ts' file. Notice that we're using the map operator for all of the app's core features! Mucho cool!
  • 26. All's well and good, but what's with the fat arrows all over the place? "By using arrow function we avoid having to type the function keyword, return keyword (it’s implicit in arrow functions), and curly brackets." Read more here: "ES6 Arrow Functions: The New Fat & Concise Syntax in JavaScript" =>
  • 27. Notice that our 'SearchComponent' saves the response in a variable called 'searchRes'. Go back to your 'search.component.html' file now. Turns out that's the array that 'ngfor' is looping through and pasting to the page. Finally, we've come full circle.
  • 28. Add features by playing with the Spotify Api:
  • 29. UP NEXT: Other fascinating Angular 2 projects
  • 31. GETTING STARTED a) Create your own Auth0 account at: https://auth0.com/ b) Or you can simply clone this repo here: https://github.com/ElishaKay/Angular-2-Auth-App c) Watch the youtube tutorial here: https://www.youtube.com/watch?v=i_dHFvi1BJc
  • 32. If you clone the github repo, you can fill in your account credentials here:
  • 34. a) View the demo here: http://redux.jessepinho.com/#/twitter b) Clone the repo here: https://github.com/ElishaKay/Redux-and-Angular-2 c) Watch the youtube tutorial here: http://www.youtube.com/watch?v=Q9iSjFbPjPo&t=12m38s GETTING STARTED
  • 35. The fundamental premise of redux is that the entire state of the application is represented in a single JavaScript object called a store, or application store, that can be acted upon using special functions called reducers. Redux in a Nutshell See the live twitter example for more info...
  • 36. c) Reddit Project Check out the github repo by clicking here. Check out the awesome ebook dedicated to explaining the Reddit project by clicking here. please note, the Reddit explanation begins on page 29.
  • 37. Stay in touch, E V E R Y T H I N G J S Comment on Meetup