SlideShare a Scribd company logo
ANGULAR 5
By: Abhishek Mallick
WE WILL DISCUSS ABOUT
• Introduction
• Evolution Timeline
• Some Syntax AngularJS vs Angular 5
• Angular 5 start-up
– Angular 5 setup
– Angular 5 create new project
– New project structure
– Special Instruction
• Angular 5 elements
– Components
– Interpolation, Property Binding & Event Binding
– Route
– Services
• Angular 5 Deployment
INTRODUCTION
• Angular is a
– JavaScript-based
– Open-source
– Front-end web application framework
– Mainly maintained by Google
– And by a community of individuals and corporations
– To address many of the challenges encountered in developing
single-page applications
EVOLUTION TIMELINE
2012
2014
2016
2017
2018
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
AngularJS Angular 2 Angular 4 Angular 5 Angular 6
SOME SYNTAX ANGULARJS VS ANGULAR 5
Syntax AngularJS Angular 5
Model binding ng-model [(ngModel)]
Value Binding ng-value [value]
Click Binding ng-click (click)
Scope creation $scope Not needed
Repetition ng-repeat *ngFor
ANGULAR 5 START-UP (SETUP)
• Open command line interface
• Type command to install angular 5 at global level
– $ npm install @angular/cli -g
• Once the installation is over to check the version of Angular
use command
– $ ng -v
• If you see an output similar to this the installation is over
– Angular CLI: 1.6.8
Node: 8.9.1
OS: win32 x64
Angular:
…
ANGULAR 5 START-UP (CREATE NEW PROJECT)
• Open command prompt interface to the folder path
• Run the command to generate the angular structure inside the folder:
– $ ng new <project_name> –style=scss –routing
• Here in above code we are creating a new project with style support for
scss and routing enabled
• Now get inside the project name folder <project_name> by command
– $ cd <project_name>
• Now it’s time to run the default project created using command
– $ ng serve
• Now test your first application by opening the browser and opening url
mentioned which running the above command (default
http://localhost:4200)
ANGULAR 5 START-UP (CREATE NEW PROJECT)
ANGULAR 5 START-UP (PROJECT STRUCTURE)
ANGULAR 5 START-UP (SPECIAL INSTRUCTION)
• To do the changes we will do all our changes inside “src”
folder
ANGULAR 5 ELEMENTS (COMPONENTS)
• Angular components are considered as the basic building
blocks of angular app.
• Angular components can be found inside “/src/app” folder
• Angular components is made up of:
– A component decorator, which help to set CSS, animations and many
more
– Imports needed by the component to work
– A Class (here lies the component’s logic)
ANGULAR 5 ELEMENTS (COMPONENTS)
• Open the cmd in the <project_name> location
• Type the command
– $ ng generate component <component_name>
– You can also do this by using command
– $ ng g c <component_name>
– Example:
• $ ng g c home
• The above command will generate the component with other files as:
• create src/app/home/home.component.html (23 bytes)
create src/app/home/home.component.spec.ts (614 bytes)
create src/app/home/home.component.ts (262 bytes)
create src/app/home/home.component.scss (0 bytes)
update src/app/app.module.ts (467 bytes)
• It also maps the new component in the app.module.ts as from above.
ANGULAR 5 ELEMENTS (COMPONENTS)
• Now if you check the above files let us go through each
one by one:
– home.component.html : This file contains the html for the home
component. All the html changes need to be changed for this
component needs to be added in this file.
– home.component.ts : This file contains the logic need to be
performed for this component under the class
“HomeComponent” inside.
– home.component.scss : This file contains the CSS styling that
needs to be added for the component.
ANGULAR 5 ELEMENTS (INTERPOLATION)
• When we change some property from the component
class to template we use interpolation.
ANGULAR 5 ELEMENTS (INTERPOLATION)
• Example at:
https://abhishekmallickblog.wordpress.com/2018/02/20/
angular-5-interpolation-property-binding-event-binding/
ANGULAR 5 ELEMENTS (PROPERTY BINDING)
• Binding the properties of the html element with the code
in the class
ANGULAR 5 ELEMENTS (PROPERTY BINDING)
• Example at:
https://abhishekmallickblog.wordpress.com/2018/02/20/
angular-5-interpolation-property-binding-event-binding/
ANGULAR 5 ELEMENTS (EVENT BINDING)
• Say you want to take a data and set data from and to
an input box using component class then you use Two-
way Binding
ANGULAR 5 ELEMENTS (EVENT BINDING)
• Example at:
https://abhishekmallickblog.wordpress.com/2018/02/20/
angular-5-interpolation-property-binding-event-binding/
ANGULAR 5 ELEMENTS (ROUTE)
• Route is navigating through the multiple screens of the
app.
ANGULAR 5 ELEMENTS (ROUTE)
• Example at:
https://abhishekmallickblog.wordpress.com/2018/02/20/
angular-5-route/
ANGULAR 5 ELEMENTS (SERVICES)
• Services are class in Angular 5 which are used to provide
common features or variables to multiple modules of the
app.
ANGULAR 5 ELEMENTS (SERVICES)
• Example at:
https://abhishekmallickblog.wordpress.com/2018/03/25/
angular-5-services/
ANGULAR 5 DEPLOYMENT
• Normal build
– $ ng build
– after it executes (might 5 to 15 min) you can see a folder ”/dist”
• Production build
– $ ng build –prod
– after it executes (might 5 to 15 min) you can see a folder ”/dist”
• Let us see the difference between both
AT LAST OF THEORY
• As you can see from the evolution of Angular from 2012
till today, there been multiple iterations. This can help
you solve a problem and not the only solution.
• So what must be in mind is
“These are only tools which can only enable
you to solve a problem and only limited what
you want to use it for” – Abhishek Mallick
REFERENCE
• https://abhishekmallickblog.wordpress.com/2018/02/20/l
et-us-start-with-angular-5/
• https://angular.io/docs
THANK YOU FOR BEING SUCH A GREAT FOLKS

More Related Content

What's hot

Jenkins Continuous Delivery
Jenkins Continuous DeliveryJenkins Continuous Delivery
Jenkins Continuous Delivery
Jadson Santos
 
Angular4 getting started
Angular4 getting startedAngular4 getting started
Angular4 getting started
TejinderMakkar
 
ReactJS.NET
ReactJS.NETReactJS.NET
ReactJS.NET
Troy Miles
 
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
Edureka!
 
Alloy Simple App Demonstration
Alloy Simple App DemonstrationAlloy Simple App Demonstration
Alloy Simple App Demonstration
Aaron Saunders
 
Appcelerator Titanium Alloy
Appcelerator Titanium Alloy Appcelerator Titanium Alloy
Appcelerator Titanium Alloy
karthi-anubavam
 
Angular App Presentation
Angular App PresentationAngular App Presentation
Angular App Presentation
Elizabeth Long
 
Dive into Angular, part 4: Angular 2.0
Dive into Angular, part 4: Angular 2.0Dive into Angular, part 4: Angular 2.0
Dive into Angular, part 4: Angular 2.0
Oleksii Prohonnyi
 
Angular 6 - The Complete Guide
Angular 6 - The Complete GuideAngular 6 - The Complete Guide
Angular 6 - The Complete Guide
Sam Dias
 
Angular 4 Introduction Tutorial
Angular 4 Introduction TutorialAngular 4 Introduction Tutorial
Angular 4 Introduction Tutorial
Scott Lee
 
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | EdurekaAngular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
Edureka!
 
Angular 9 New features
Angular 9 New featuresAngular 9 New features
Angular 9 New features
Ahmed Bouchefra
 
Angular 2 - An Introduction
Angular 2 - An IntroductionAngular 2 - An Introduction
Angular 2 - An Introduction
NexThoughts Technologies
 
Angular, the New Angular JS
Angular, the New Angular JSAngular, the New Angular JS
Angular, the New Angular JS
Kenzan
 
Developing a Demo Application with Angular 4 - J2I
Developing a Demo Application with Angular 4 - J2IDeveloping a Demo Application with Angular 4 - J2I
Developing a Demo Application with Angular 4 - J2I
Nader Debbabi
 
Introduction for Master Class "Amazing Reactive Forms"
Introduction for Master Class "Amazing Reactive Forms"Introduction for Master Class "Amazing Reactive Forms"
Introduction for Master Class "Amazing Reactive Forms"
Fabio Biondi
 
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
 
React Native - Getting Started
React Native - Getting StartedReact Native - Getting Started
React Native - Getting Started
Tracy Lee
 
Angular 9
Angular 9 Angular 9
Angular 9
Raja Vishnu
 
The Ultimate Getting Started with Angular Workshop - Devoxx UK 2017
The Ultimate Getting Started with Angular Workshop - Devoxx UK 2017The Ultimate Getting Started with Angular Workshop - Devoxx UK 2017
The Ultimate Getting Started with Angular Workshop - Devoxx UK 2017
Matt Raible
 

What's hot (20)

Jenkins Continuous Delivery
Jenkins Continuous DeliveryJenkins Continuous Delivery
Jenkins Continuous Delivery
 
Angular4 getting started
Angular4 getting startedAngular4 getting started
Angular4 getting started
 
ReactJS.NET
ReactJS.NETReactJS.NET
ReactJS.NET
 
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
 
Alloy Simple App Demonstration
Alloy Simple App DemonstrationAlloy Simple App Demonstration
Alloy Simple App Demonstration
 
Appcelerator Titanium Alloy
Appcelerator Titanium Alloy Appcelerator Titanium Alloy
Appcelerator Titanium Alloy
 
Angular App Presentation
Angular App PresentationAngular App Presentation
Angular App Presentation
 
Dive into Angular, part 4: Angular 2.0
Dive into Angular, part 4: Angular 2.0Dive into Angular, part 4: Angular 2.0
Dive into Angular, part 4: Angular 2.0
 
Angular 6 - The Complete Guide
Angular 6 - The Complete GuideAngular 6 - The Complete Guide
Angular 6 - The Complete Guide
 
Angular 4 Introduction Tutorial
Angular 4 Introduction TutorialAngular 4 Introduction Tutorial
Angular 4 Introduction Tutorial
 
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | EdurekaAngular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
 
Angular 9 New features
Angular 9 New featuresAngular 9 New features
Angular 9 New features
 
Angular 2 - An Introduction
Angular 2 - An IntroductionAngular 2 - An Introduction
Angular 2 - An Introduction
 
Angular, the New Angular JS
Angular, the New Angular JSAngular, the New Angular JS
Angular, the New Angular JS
 
Developing a Demo Application with Angular 4 - J2I
Developing a Demo Application with Angular 4 - J2IDeveloping a Demo Application with Angular 4 - J2I
Developing a Demo Application with Angular 4 - J2I
 
Introduction for Master Class "Amazing Reactive Forms"
Introduction for Master Class "Amazing Reactive Forms"Introduction for Master Class "Amazing Reactive Forms"
Introduction for Master Class "Amazing Reactive Forms"
 
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
 
React Native - Getting Started
React Native - Getting StartedReact Native - Getting Started
React Native - Getting Started
 
Angular 9
Angular 9 Angular 9
Angular 9
 
The Ultimate Getting Started with Angular Workshop - Devoxx UK 2017
The Ultimate Getting Started with Angular Workshop - Devoxx UK 2017The Ultimate Getting Started with Angular Workshop - Devoxx UK 2017
The Ultimate Getting Started with Angular Workshop - Devoxx UK 2017
 

Similar to Say hello world with angular 5

Angular IO
Angular IOAngular IO
Angular IO
Jennifer Estrada
 
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 6 Form Validation with Material
Angular 6 Form Validation with MaterialAngular 6 Form Validation with Material
Angular 6 Form Validation with Material
Malika Munaweera
 
Introduction to angular with a simple but complete project
Introduction to angular with a simple but complete projectIntroduction to angular with a simple but complete project
Introduction to angular with a simple but complete project
Jadson Santos
 
Angular kickstart slideshare
Angular kickstart   slideshareAngular kickstart   slideshare
Angular kickstart slideshare
SaleemMalik52
 
Angular 2.0
Angular  2.0Angular  2.0
Angular 2.0
Mallikarjuna G D
 
Why choose Angular 6?
Why choose Angular 6?Why choose Angular 6?
Why choose Angular 6?
Priyanka Verma
 
End to-End SPA Development Using ASP.NET and AngularJS
End to-End SPA Development Using ASP.NET and AngularJSEnd to-End SPA Development Using ASP.NET and AngularJS
End to-End SPA Development Using ASP.NET and AngularJS
Gil Fink
 
An Overview of Angular 4
An Overview of Angular 4 An Overview of Angular 4
Webcomponents are your frameworks best friend
Webcomponents are your frameworks best friendWebcomponents are your frameworks best friend
Webcomponents are your frameworks best friend
Filip Bruun Bech-Larsen
 
mean stack
mean stackmean stack
mean stack
michaelaaron25322
 
Stencil the time for vanilla web components has arrived
Stencil the time for vanilla web components has arrivedStencil the time for vanilla web components has arrived
Stencil the time for vanilla web components has arrived
Gil Fink
 
Quick introduction to Angular 4 for AngularJS 1.5 developers
Quick introduction to Angular 4 for AngularJS 1.5 developersQuick introduction to Angular 4 for AngularJS 1.5 developers
Quick introduction to Angular 4 for AngularJS 1.5 developers
Paweł Żurowski
 
AngularJS Beginners Workshop
AngularJS Beginners WorkshopAngularJS Beginners Workshop
AngularJS Beginners Workshop
Sathish VJ
 
TechEvent 2019: Nachhaltige Client-Architekturen mit Angular Elements; Thomas...
TechEvent 2019: Nachhaltige Client-Architekturen mit Angular Elements; Thomas...TechEvent 2019: Nachhaltige Client-Architekturen mit Angular Elements; Thomas...
TechEvent 2019: Nachhaltige Client-Architekturen mit Angular Elements; Thomas...
Trivadis
 
Angular - Chapter 3 - Components
Angular - Chapter 3 - ComponentsAngular - Chapter 3 - Components
Angular - Chapter 3 - Components
WebStackAcademy
 
Angular Interview Questions-PDF.pdf
Angular Interview Questions-PDF.pdfAngular Interview Questions-PDF.pdf
Angular Interview Questions-PDF.pdf
JohnLeo57
 
Angular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad indiaAngular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad india
php2ranjan
 
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
tilejak773
 
AngularJS
AngularJSAngularJS
AngularJS
Mahmoud Tolba
 

Similar to Say hello world with angular 5 (20)

Angular IO
Angular IOAngular IO
Angular IO
 
Web worker in your angular application
Web worker in your angular applicationWeb worker in your angular application
Web worker in your angular application
 
Angular 6 Form Validation with Material
Angular 6 Form Validation with MaterialAngular 6 Form Validation with Material
Angular 6 Form Validation with Material
 
Introduction to angular with a simple but complete project
Introduction to angular with a simple but complete projectIntroduction to angular with a simple but complete project
Introduction to angular with a simple but complete project
 
Angular kickstart slideshare
Angular kickstart   slideshareAngular kickstart   slideshare
Angular kickstart slideshare
 
Angular 2.0
Angular  2.0Angular  2.0
Angular 2.0
 
Why choose Angular 6?
Why choose Angular 6?Why choose Angular 6?
Why choose Angular 6?
 
End to-End SPA Development Using ASP.NET and AngularJS
End to-End SPA Development Using ASP.NET and AngularJSEnd to-End SPA Development Using ASP.NET and AngularJS
End to-End SPA Development Using ASP.NET and AngularJS
 
An Overview of Angular 4
An Overview of Angular 4 An Overview of Angular 4
An Overview of Angular 4
 
Webcomponents are your frameworks best friend
Webcomponents are your frameworks best friendWebcomponents are your frameworks best friend
Webcomponents are your frameworks best friend
 
mean stack
mean stackmean stack
mean stack
 
Stencil the time for vanilla web components has arrived
Stencil the time for vanilla web components has arrivedStencil the time for vanilla web components has arrived
Stencil the time for vanilla web components has arrived
 
Quick introduction to Angular 4 for AngularJS 1.5 developers
Quick introduction to Angular 4 for AngularJS 1.5 developersQuick introduction to Angular 4 for AngularJS 1.5 developers
Quick introduction to Angular 4 for AngularJS 1.5 developers
 
AngularJS Beginners Workshop
AngularJS Beginners WorkshopAngularJS Beginners Workshop
AngularJS Beginners Workshop
 
TechEvent 2019: Nachhaltige Client-Architekturen mit Angular Elements; Thomas...
TechEvent 2019: Nachhaltige Client-Architekturen mit Angular Elements; Thomas...TechEvent 2019: Nachhaltige Client-Architekturen mit Angular Elements; Thomas...
TechEvent 2019: Nachhaltige Client-Architekturen mit Angular Elements; Thomas...
 
Angular - Chapter 3 - Components
Angular - Chapter 3 - ComponentsAngular - Chapter 3 - Components
Angular - Chapter 3 - Components
 
Angular Interview Questions-PDF.pdf
Angular Interview Questions-PDF.pdfAngular Interview Questions-PDF.pdf
Angular Interview Questions-PDF.pdf
 
Angular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad indiaAngular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad india
 
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
 
AngularJS
AngularJSAngularJS
AngularJS
 

Recently uploaded

Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
Roshan Dwivedi
 
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
kalichargn70th171
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Preparing Non - Technical Founders for Engaging a Tech Agency
Preparing Non - Technical Founders for Engaging  a  Tech AgencyPreparing Non - Technical Founders for Engaging  a  Tech Agency
Preparing Non - Technical Founders for Engaging a Tech Agency
ISH Technologies
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Mobile app Development Services | Drona Infotech
Mobile app Development Services  | Drona InfotechMobile app Development Services  | Drona Infotech
Mobile app Development Services | Drona Infotech
Drona Infotech
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
lorraineandreiamcidl
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 

Recently uploaded (20)

Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
 
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Preparing Non - Technical Founders for Engaging a Tech Agency
Preparing Non - Technical Founders for Engaging  a  Tech AgencyPreparing Non - Technical Founders for Engaging  a  Tech Agency
Preparing Non - Technical Founders for Engaging a Tech Agency
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Mobile app Development Services | Drona Infotech
Mobile app Development Services  | Drona InfotechMobile app Development Services  | Drona Infotech
Mobile app Development Services | Drona Infotech
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 

Say hello world with angular 5

  • 2. WE WILL DISCUSS ABOUT • Introduction • Evolution Timeline • Some Syntax AngularJS vs Angular 5 • Angular 5 start-up – Angular 5 setup – Angular 5 create new project – New project structure – Special Instruction • Angular 5 elements – Components – Interpolation, Property Binding & Event Binding – Route – Services • Angular 5 Deployment
  • 3. INTRODUCTION • Angular is a – JavaScript-based – Open-source – Front-end web application framework – Mainly maintained by Google – And by a community of individuals and corporations – To address many of the challenges encountered in developing single-page applications
  • 5. SOME SYNTAX ANGULARJS VS ANGULAR 5 Syntax AngularJS Angular 5 Model binding ng-model [(ngModel)] Value Binding ng-value [value] Click Binding ng-click (click) Scope creation $scope Not needed Repetition ng-repeat *ngFor
  • 6. ANGULAR 5 START-UP (SETUP) • Open command line interface • Type command to install angular 5 at global level – $ npm install @angular/cli -g • Once the installation is over to check the version of Angular use command – $ ng -v • If you see an output similar to this the installation is over – Angular CLI: 1.6.8 Node: 8.9.1 OS: win32 x64 Angular: …
  • 7. ANGULAR 5 START-UP (CREATE NEW PROJECT) • Open command prompt interface to the folder path • Run the command to generate the angular structure inside the folder: – $ ng new <project_name> –style=scss –routing • Here in above code we are creating a new project with style support for scss and routing enabled • Now get inside the project name folder <project_name> by command – $ cd <project_name> • Now it’s time to run the default project created using command – $ ng serve • Now test your first application by opening the browser and opening url mentioned which running the above command (default http://localhost:4200)
  • 8. ANGULAR 5 START-UP (CREATE NEW PROJECT)
  • 9. ANGULAR 5 START-UP (PROJECT STRUCTURE)
  • 10. ANGULAR 5 START-UP (SPECIAL INSTRUCTION) • To do the changes we will do all our changes inside “src” folder
  • 11. ANGULAR 5 ELEMENTS (COMPONENTS) • Angular components are considered as the basic building blocks of angular app. • Angular components can be found inside “/src/app” folder • Angular components is made up of: – A component decorator, which help to set CSS, animations and many more – Imports needed by the component to work – A Class (here lies the component’s logic)
  • 12. ANGULAR 5 ELEMENTS (COMPONENTS) • Open the cmd in the <project_name> location • Type the command – $ ng generate component <component_name> – You can also do this by using command – $ ng g c <component_name> – Example: • $ ng g c home • The above command will generate the component with other files as: • create src/app/home/home.component.html (23 bytes) create src/app/home/home.component.spec.ts (614 bytes) create src/app/home/home.component.ts (262 bytes) create src/app/home/home.component.scss (0 bytes) update src/app/app.module.ts (467 bytes) • It also maps the new component in the app.module.ts as from above.
  • 13. ANGULAR 5 ELEMENTS (COMPONENTS) • Now if you check the above files let us go through each one by one: – home.component.html : This file contains the html for the home component. All the html changes need to be changed for this component needs to be added in this file. – home.component.ts : This file contains the logic need to be performed for this component under the class “HomeComponent” inside. – home.component.scss : This file contains the CSS styling that needs to be added for the component.
  • 14. ANGULAR 5 ELEMENTS (INTERPOLATION) • When we change some property from the component class to template we use interpolation.
  • 15. ANGULAR 5 ELEMENTS (INTERPOLATION) • Example at: https://abhishekmallickblog.wordpress.com/2018/02/20/ angular-5-interpolation-property-binding-event-binding/
  • 16. ANGULAR 5 ELEMENTS (PROPERTY BINDING) • Binding the properties of the html element with the code in the class
  • 17. ANGULAR 5 ELEMENTS (PROPERTY BINDING) • Example at: https://abhishekmallickblog.wordpress.com/2018/02/20/ angular-5-interpolation-property-binding-event-binding/
  • 18. ANGULAR 5 ELEMENTS (EVENT BINDING) • Say you want to take a data and set data from and to an input box using component class then you use Two- way Binding
  • 19. ANGULAR 5 ELEMENTS (EVENT BINDING) • Example at: https://abhishekmallickblog.wordpress.com/2018/02/20/ angular-5-interpolation-property-binding-event-binding/
  • 20. ANGULAR 5 ELEMENTS (ROUTE) • Route is navigating through the multiple screens of the app.
  • 21. ANGULAR 5 ELEMENTS (ROUTE) • Example at: https://abhishekmallickblog.wordpress.com/2018/02/20/ angular-5-route/
  • 22. ANGULAR 5 ELEMENTS (SERVICES) • Services are class in Angular 5 which are used to provide common features or variables to multiple modules of the app.
  • 23. ANGULAR 5 ELEMENTS (SERVICES) • Example at: https://abhishekmallickblog.wordpress.com/2018/03/25/ angular-5-services/
  • 24. ANGULAR 5 DEPLOYMENT • Normal build – $ ng build – after it executes (might 5 to 15 min) you can see a folder ”/dist” • Production build – $ ng build –prod – after it executes (might 5 to 15 min) you can see a folder ”/dist” • Let us see the difference between both
  • 25. AT LAST OF THEORY • As you can see from the evolution of Angular from 2012 till today, there been multiple iterations. This can help you solve a problem and not the only solution. • So what must be in mind is “These are only tools which can only enable you to solve a problem and only limited what you want to use it for” – Abhishek Mallick
  • 27. THANK YOU FOR BEING SUCH A GREAT FOLKS