SlideShare a Scribd company logo
AngularJS 2
@trungk18
Front-end Developer@Zyllem
Zyllem@Angular 2
Agenda
• Single Page Application (SPA)
• What and Why Angular?
• Angular 2.
• Its concept
• Github Demo App
• Q&A
11/1/2016 Zyllem@Angular 2
Single Page Application?
11/1/2016 Zyllem@Angular 2
Traditional Application
JS begin parsing and executing to initialize date
time picker, modal, etc.
11/1/2016 Zyllem@Angular 2
Single Page Application
AngularJS start parsing, downloading template,
stylesheet, etc. and doing compiler on the browser
11/1/2016 Zyllem@Angular 2
Angular
11/1/2016 Zyllem@Angular 2
What is Angular?
• Angular is JavaScript framework.
• Building client side application.
• Using HTML,CSS and a programing language such as
JavaScript.
11/1/2016 Zyllem@Angular 2
Why Angular?
11/1/2016 Zyllem@Angular 2
Why Angular 2?
11/1/2016 Zyllem@Angular 2
• Performance.
• Component Based-UI. No more concept of controllers
• Goodbye $scope
• Modern – using new features – classes, object with support of
ES6 / TypeScript
11/1/2016 Zyllem@Angular 2
Angular 1 Controller
11/1/2016 Zyllem@Angular 2
Angular 2 Component
Component
11/1/2016 Zyllem@Angular 2
• View layout
• Created with
HTML
• Includes
binding and
directive
• Code supporting the
view
• Created with TypeScript
• Includes
• Property - data
• Method - logic
• Extra data
• Defines with
decorator
Angular 2 Concepts
11/1/2016 Zyllem@Angular 2
Component
11/1/2016 Zyllem@Angular 2
LeftCmp CenterCmp
MapCmp
TopCmp
Boostrapping/Loading Application
11/1/2016 Zyllem@Angular 2
Index.html
Systemjs.config.js
main.ts
app.module.ts
app.component.ts
Available Language
11/1/2016 Zyllem@Angular 2
• ES5(EcmaScript 5) – Run in the browser.
• ES6(EcmaScript 2015) – Lots of new features (classes, let,
arrow)
• TypeScript – Superset of JavaScript, Strong typing, IDE
• Dart.
TypeScript
11/1/2016 Zyllem@Angular 2
• Open source language.
• Superset of JavaScript.
• Transpiles to plain JavaScript.
• Strongly typed.
• .ts Extension.
• Class-Based object orientation.
Demo
11/1/2016 Zyllem@Angular 2
https://plnkr.co/edit/0saDy43dTPpPBl100R0p?p=preview
Q&A
11/1/2016 Zyllem@Angular 2

More Related Content

PPTX
PPT on Angular 2 Development Tutorial
PDF
An Intro to Angular 2
PPTX
Angular 2
PDF
The evolution of Angular 2 @ AngularJS Munich Meetup #5
PDF
Introduction to Angular 2
PDF
What angular 13 will bring to the table
PDF
Angular 2 - Core Concepts
PPT on Angular 2 Development Tutorial
An Intro to Angular 2
Angular 2
The evolution of Angular 2 @ AngularJS Munich Meetup #5
Introduction to Angular 2
What angular 13 will bring to the table
Angular 2 - Core Concepts

What's hot (20)

PDF
Getting Started with Angular 2
PDF
Angular2 with type script
PDF
What is Angular version 4?
PPTX
Talk for DevFest 2021 - GDG Bénin
PPTX
Introduction to angular 2
PPTX
Angular 4 Introduction Tutorial
PDF
Angular2 intro
PPTX
What’s new in angular 2
PDF
Angular 2 interview questions and answers
ODP
Angular 6 - The Complete Guide
PPTX
Angular 2 + TypeScript = true. Let's Play!
PDF
Developing a Demo Application with Angular 4 - J2I
PDF
Getting Started with the Angular 2 CLI
PDF
AngularJS 2.0 Jumpstart
PPTX
Micro frontend
PDF
Introduction to angular 2
PDF
Angular 2... so can I use it now??
PDF
Introduction to Angular 2
PDF
Gettings started with the superheroic JavaScript library AngularJS
PDF
Angular 2 - An Introduction
Getting Started with Angular 2
Angular2 with type script
What is Angular version 4?
Talk for DevFest 2021 - GDG Bénin
Introduction to angular 2
Angular 4 Introduction Tutorial
Angular2 intro
What’s new in angular 2
Angular 2 interview questions and answers
Angular 6 - The Complete Guide
Angular 2 + TypeScript = true. Let's Play!
Developing a Demo Application with Angular 4 - J2I
Getting Started with the Angular 2 CLI
AngularJS 2.0 Jumpstart
Micro frontend
Introduction to angular 2
Angular 2... so can I use it now??
Introduction to Angular 2
Gettings started with the superheroic JavaScript library AngularJS
Angular 2 - An Introduction
Ad

Viewers also liked (20)

ODP
Introduction to Angular 2
PPTX
Angular js 2
PDF
Angular 2 overview
PDF
Angular 2 for Java Developers
PDF
Building Universal Applications with Angular 2
PPTX
Watch and Learn Mobile Learning System in 5 Steps Pilot Project
PPTX
0 to Angular in 45 Mins
PDF
IPT angular2 typescript SPA 2016
PDF
Launch Yourself into The AngularJS 2 And TypeScript Space
PPTX
Single Page Application con Angular 2
PPTX
Unit testing of java script and angularjs application using Karma Jasmine Fra...
PDF
Spa with angular
PPTX
Working with http client rest apis and connection availability check
PDF
Introduction to Express and Grunt
PDF
Insights on Protractor testing
PDF
Introduction to SPA with AngularJS
PDF
Angular 2 - The Next Framework
PPTX
Publish Subscribe pattern - Design Patterns
PDF
Optimising Your Front End Workflow With Symfony, Twig, Bower and Gulp
KEY
Publish and Subscribe
Introduction to Angular 2
Angular js 2
Angular 2 overview
Angular 2 for Java Developers
Building Universal Applications with Angular 2
Watch and Learn Mobile Learning System in 5 Steps Pilot Project
0 to Angular in 45 Mins
IPT angular2 typescript SPA 2016
Launch Yourself into The AngularJS 2 And TypeScript Space
Single Page Application con Angular 2
Unit testing of java script and angularjs application using Karma Jasmine Fra...
Spa with angular
Working with http client rest apis and connection availability check
Introduction to Express and Grunt
Insights on Protractor testing
Introduction to SPA with AngularJS
Angular 2 - The Next Framework
Publish Subscribe pattern - Design Patterns
Optimising Your Front End Workflow With Symfony, Twig, Bower and Gulp
Publish and Subscribe
Ad

Similar to Introduction to Angular 2 (20)

PPTX
PDF
Angular 4 Tutorial For Beginners | Angular 4 Introduction | Angular 4 Trainin...
PPTX
PDF
Angular 2 - How we got here?
PPTX
Introduction to Angular 2.0
PDF
Angular 2 Crash Course
PPTX
Angular 2 with typescript
PPTX
Angularjs basic part01
PDF
AngularJS for Beginners
PDF
Getting Started With AngularJS
PDF
Getting Started with AngularJS
PDF
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
PPTX
Angular js 2.0 beta
PDF
Angular2 tutorial
PPTX
Angular 2 On Production (IT Talk in Dnipro)
PDF
Angular JS 2_0 BCS CTO_in_Res V3
PPTX
Introduction to Angular 2
PPTX
Introduction to Angular js 2.0
PDF
Angular 2: What's New?
PPTX
Angular
Angular 4 Tutorial For Beginners | Angular 4 Introduction | Angular 4 Trainin...
Angular 2 - How we got here?
Introduction to Angular 2.0
Angular 2 Crash Course
Angular 2 with typescript
Angularjs basic part01
AngularJS for Beginners
Getting Started With AngularJS
Getting Started with AngularJS
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
Angular js 2.0 beta
Angular2 tutorial
Angular 2 On Production (IT Talk in Dnipro)
Angular JS 2_0 BCS CTO_in_Res V3
Introduction to Angular 2
Introduction to Angular js 2.0
Angular 2: What's New?
Angular

Recently uploaded (20)

PDF
Designing Intelligence for the Shop Floor.pdf
PDF
Nekopoi APK 2025 free lastest update
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Transform Your Business with a Software ERP System
PPTX
ai tools demonstartion for schools and inter college
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPT
Introduction Database Management System for Course Database
PDF
top salesforce developer skills in 2025.pdf
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
medical staffing services at VALiNTRY
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
Designing Intelligence for the Shop Floor.pdf
Nekopoi APK 2025 free lastest update
Reimagine Home Health with the Power of Agentic AI​
PTS Company Brochure 2025 (1).pdf.......
VVF-Customer-Presentation2025-Ver1.9.pptx
Transform Your Business with a Software ERP System
ai tools demonstartion for schools and inter college
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Design an Analysis of Algorithms II-SECS-1021-03
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Introduction Database Management System for Course Database
top salesforce developer skills in 2025.pdf
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
L1 - Introduction to python Backend.pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
medical staffing services at VALiNTRY
Odoo Companies in India – Driving Business Transformation.pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Which alternative to Crystal Reports is best for small or large businesses.pdf

Introduction to Angular 2

Editor's Notes

  • #5: Since the dawn of the Web, the browsing experience has worked like this: a web browser would request a particular page (say, “http://www.zyllem.com/”), causing a server somewhere on the Internet – this case Azure to generate an HTML page and send it back. This has worked well because browsers weren’t very powerful and HTML pages represented documents that were mostly static and self-contained. JavaScript, created to allow web pages to be more dynamic, didn’t enable much more than image slideshows and date picker widgets. After years of advances in personal computing, creative technologists have pushed the web to its limits, and web browsers have evolved to keep up. Now, the Web has matured into a fully-featured application platform, and fast JavaScript runtimes and HTML5 standards have enabled developers to create the rich apps that before were only possible on native platforms.
  • #6: It wasn’t long before developers started to build out entire applications in the browser using JavaScript, taking advantage of these new capabilities. Apps like Gmail, the classic example of the single-page app, could respond immediately to user interactions, no longer needing to make a round-trip to the server just to render a new page. The bulk of the application logic (views, templates, controllers, models, internationalization, etc.) lives in the client, and it talks to an API for data. The server could be written in any language, such as Ruby, Python, or Java, and it mostly handles serving up an initial barebones page of HTML. Once the JavaScript files are downloaded by the browser, they are evaluated and the client-side app is initialized, fetching data from the API and rendering the rest of the HTML page. This is great for the user because once the app is initially loaded, it can support quick navigation between pages without refreshing the page, and if done right, can even work offline. This is great for the developer because the idealized single-page app has a clear separation of concerns between the client and the server, promoting a nice development workflow and preventing the need to share too much logic between the two, which are often written in different languages.
  • #12: Before we can use the external class, we need to tell the module loader where to find it. We do It with import statement. Same purpose with using in C# that allow us to use exported members from external modules. Or import from 3rd Decorator is the function that adds metadata into a class. Prefix with @ Declare immediately right above the class. Similar to attribute of other programming languages Use @Component to identify class as the Angular component [Authorize] public class MainController(){ }
  • #13: A component controls a patch of screen called a view/template. Example App root with Navigation List of Delivery Delivery detail
  • #14: Angular apps are modular and Angular has its own modularity system called Angular modules or NgModules. While the root module may be the only module in a small application, most apps have many more feature modules, each a cohesive block of code dedicated to an application domain, a workflow, or a closely related set of capabilities. An Angular module, whether a root or feature, is a class with an @NgModule decorator. There are no standard way to group modules, but the recommendations are: Features as a module Shared utilities as a module Customer: CustomerListComponent, CustomerDetailComponent, CreateCustomerComponent, CustomerService Product: ProductListComponent, ProductDetailComponent, CreateProductComponent, ProductService
  • #16: We have the index.html file set up to host the application by select the selector from the root component as the directive. Compile application in the browser dynamically and launch it be platformBrowserDynamic BrowserModule is the module needed for every web application run on browser