SlideShare a Scribd company logo
ANGULAR CLI
NIKUNJ PATEL
@PATELNIK7
INTRODUCTION TO ANGULAR
• Angular started as a side project and was released back in June, 2012
• client side MVC and MVVM framework
• Mongo, Express, Angular, Node (MEAN) Stack.
• Journey from 1.0 —> 2.0 —> 4.0
WHY ANGULAR?
• Two way data binding
• loosely coupled and easily testable.
• TypeScript
• Components
• Develop Once, Run everywhere
• Size and Speed.
• Added IDE Support
BASIC DEFINITIONS
• Bootstrapping
• It is used to explicitly specify a root component that Angular should use to start
the application.
• Components
• Allows to add metadata to determine how to process, instantiate and use
component (Class with templates) at runtime.
• Modules
• Helps put components as a cohesive blocks of functionality.
DEVELOP “HELLO WORLD” FROM SCRATCH
• “With great power, comes great responsibility.”
• Setting up Angular environment is tougher than it used to be.
• In Angular1, we could easily create Hello World application in matter of minutes.
However, With Angular2 Things have changed.
• Let’s see what it takes now to create Angular2 application.
PREREQUISITES FOR “HELLO WORLD”.
• Install TypeScript (if not installed)
• tsconfig.json
• package.json
• App (module, component, main.ts)
• systemjs.config.js
• lite-server , Concurrently
WHEN THEY SAID USE ANGULAR
INTRODUCING ANGULAR CLI
• Angular Command Line Interface (CLI) is a powerful solution to allow code generation
with simple commands.
• It also helps us with following
• Setting up Angular Project
• Following best practices in Js world.
• Testable Code
• Modular Code.
• Let’s Create “Hello World” application using Angular CLI.
PREREQUISITES FOR “HELLO WORLD”.
• Install TypeScript (if not installed) : npm install -g TypeScript
• Install Angular Cli : npm install -g @angular/cli
• Create New Project. : ng new ProjectName
• Go To the directory : cd ProjectName
• run the Project. : ng serve -o
“HELLO WORLD” WITH ANGULAR CLI
ANGULAR CLI - BASIC COMMANDS
• dry run : --dry-run
• skip npm : --skip-npm
• default styles : ng set defaults.styleExt scss
• routing : --routing
• ng doc.
• ng help
• ng generate
ANGULAR CLI - MORE COMMANDS
• Module : ng g m ModuleName
• Component : ng g c ComponentName
• Class : ng g cl ClassName
• Interface : ng g i InterfaceName
• Enum : ng g e EnumName
• Service : ng g s ServiceName
• Directive : ng g d DirectiveName
LIVE CODING : TODO APP
• Requirements
• Home Screen
• Add new To-do
• List all remaining To-do
• List of Paused To-do
LIVE CODING : TODO APP
• Requirements
• Home Screen
• ToDo Card
• Done
• Delay
• Delete
LIVE CODING : TODO APP
• Requirements
• Home Screen
• ToDo Card
• History Page
• Show all Complete ToDo
• Chart / Graph
LIVE CODING : TODO APP
• Requirements
• Home Screen
• ToDo Card
• History Page
• Create Api
• Node.Js as a backEnd
LIVE DEMO
IT’S EASY WITH CLI
• ng build
• ng build -p PortNumber
• ng test
• ng e2e
• ng build --prod
Angular CLI : HelloWorld
Survey link : http://bit.ly/NgCliSdc
REFERENCES
• Angular CLI (https://github.com/angular/angular-cli/)
• PluralSight Course : Angular CLI by John Papa
(https://app.pluralsight.com/library/courses/angular-cli/)
• Angular CLI cheatsheet

More Related Content

PDF
Getting Started with the Angular 2 CLI
PDF
Getting started with Angular CLI
PDF
The Tale of 2 CLIs - Ember-cli and Angular-cli
PDF
Creating BananaJS with Angular 2, Angular CLI, and Material Design
PDF
Creating an Angular 2 Angular CLI app in 15 Minutes Using MaterializeCSS & Fi...
PPTX
PPT on Angular 2 Development Tutorial
PDF
An Intro to Angular 2
PDF
Using Angular-CLI to Deploy an Angular 2 App Using Firebase in 30 Minutes
Getting Started with the Angular 2 CLI
Getting started with Angular CLI
The Tale of 2 CLIs - Ember-cli and Angular-cli
Creating BananaJS with Angular 2, Angular CLI, and Material Design
Creating an Angular 2 Angular CLI app in 15 Minutes Using MaterializeCSS & Fi...
PPT on Angular 2 Development Tutorial
An Intro to Angular 2
Using Angular-CLI to Deploy an Angular 2 App Using Firebase in 30 Minutes

What's hot (20)

PPTX
Introduction to Angular 2
PDF
AngularJS RTP Slides - Angular 2 Demo #ngtattoo with Angular CLI, Newest New ...
PDF
ReactJS.NET
PPTX
Talk for DevFest 2021 - GDG Bénin
PDF
Introduction to React Native
PDF
Introduction to React Native
PDF
What is Angular version 4?
PPTX
Introduction to angular 2
PPTX
PPTX
React Native
PDF
Introduction to Angular 2
PDF
Angular 2 vs React. What to chose in 2017?
PDF
Angular Day 2018 (italy) - Keynote - The Amazing World of Angular 6
PDF
React vs angular (mobile first battle)
PDF
Intro To React Native
PDF
Angular ❤️CMS
PPTX
SharePoint Fest Chicago 2017 - SharePoint Framework, Angular & Azure Functions
PPTX
Gdg makurdi
PDF
Angular 2 - An Introduction
Introduction to Angular 2
AngularJS RTP Slides - Angular 2 Demo #ngtattoo with Angular CLI, Newest New ...
ReactJS.NET
Talk for DevFest 2021 - GDG Bénin
Introduction to React Native
Introduction to React Native
What is Angular version 4?
Introduction to angular 2
React Native
Introduction to Angular 2
Angular 2 vs React. What to chose in 2017?
Angular Day 2018 (italy) - Keynote - The Amazing World of Angular 6
React vs angular (mobile first battle)
Intro To React Native
Angular ❤️CMS
SharePoint Fest Chicago 2017 - SharePoint Framework, Angular & Azure Functions
Gdg makurdi
Angular 2 - An Introduction
Ad

Similar to Angular CLI : HelloWorld (20)

PPTX
Angular4 getting started
PDF
Start with Angular framework
PPTX
I am-one-with-angular
PDF
Angular - Chapter 1 - Introduction
PDF
Angular Meetup 1 - Angular Basics and Workshop
PPTX
Module 1.pptx Angular JS FRAMEWORK WEBDEVELOPMENT
PPTX
PPTX
Web technologies-course 12.pptx
PDF
Angular, the New Angular JS
PDF
Quick introduction to Angular 4 for AngularJS 1.5 developers
PPTX
PPTX
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
PDF
Introduction to Angular for .NET Developers
DOCX
ANGULAR JS LAB MANUAL(final) vtu2021 sch
PPTX
Ng2 cli
PPTX
Angular kickstart slideshare
PDF
Introduction to Angular for .NET Developers
PDF
Say hello world with angular 5
PPTX
Angular4 kickstart
PPT
Ng2 cli v1
Angular4 getting started
Start with Angular framework
I am-one-with-angular
Angular - Chapter 1 - Introduction
Angular Meetup 1 - Angular Basics and Workshop
Module 1.pptx Angular JS FRAMEWORK WEBDEVELOPMENT
Web technologies-course 12.pptx
Angular, the New Angular JS
Quick introduction to Angular 4 for AngularJS 1.5 developers
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
Introduction to Angular for .NET Developers
ANGULAR JS LAB MANUAL(final) vtu2021 sch
Ng2 cli
Angular kickstart slideshare
Introduction to Angular for .NET Developers
Say hello world with angular 5
Angular4 kickstart
Ng2 cli v1
Ad

Recently uploaded (20)

PDF
AI in Product Development-omnex systems
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Transform Your Business with a Software ERP System
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Best Practices for Rolling Out Competency Management Software.pdf
PDF
System and Network Administration Chapter 2
PPTX
Presentation of Computer CLASS 2 .pptx
PPTX
ai tools demonstartion for schools and inter college
PPTX
Materi_Pemrograman_Komputer-Looping.pptx
PDF
Build Multi-agent using Agent Development Kit
PPTX
L1 - Introduction to python Backend.pptx
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
AI in Product Development-omnex systems
Odoo POS Development Services by CandidRoot Solutions
Transform Your Business with a Software ERP System
2025 Textile ERP Trends: SAP, Odoo & Oracle
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Which alternative to Crystal Reports is best for small or large businesses.pdf
How Creative Agencies Leverage Project Management Software.pdf
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
Softaken Excel to vCard Converter Software.pdf
Online Work Permit System for Fast Permit Processing
Best Practices for Rolling Out Competency Management Software.pdf
System and Network Administration Chapter 2
Presentation of Computer CLASS 2 .pptx
ai tools demonstartion for schools and inter college
Materi_Pemrograman_Komputer-Looping.pptx
Build Multi-agent using Agent Development Kit
L1 - Introduction to python Backend.pptx
How to Migrate SBCGlobal Email to Yahoo Easily
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK

Angular CLI : HelloWorld

  • 2. INTRODUCTION TO ANGULAR • Angular started as a side project and was released back in June, 2012 • client side MVC and MVVM framework • Mongo, Express, Angular, Node (MEAN) Stack. • Journey from 1.0 —> 2.0 —> 4.0
  • 3. WHY ANGULAR? • Two way data binding • loosely coupled and easily testable. • TypeScript • Components • Develop Once, Run everywhere • Size and Speed. • Added IDE Support
  • 4. BASIC DEFINITIONS • Bootstrapping • It is used to explicitly specify a root component that Angular should use to start the application. • Components • Allows to add metadata to determine how to process, instantiate and use component (Class with templates) at runtime. • Modules • Helps put components as a cohesive blocks of functionality.
  • 5. DEVELOP “HELLO WORLD” FROM SCRATCH • “With great power, comes great responsibility.” • Setting up Angular environment is tougher than it used to be. • In Angular1, we could easily create Hello World application in matter of minutes. However, With Angular2 Things have changed. • Let’s see what it takes now to create Angular2 application.
  • 6. PREREQUISITES FOR “HELLO WORLD”. • Install TypeScript (if not installed) • tsconfig.json • package.json • App (module, component, main.ts) • systemjs.config.js • lite-server , Concurrently
  • 7. WHEN THEY SAID USE ANGULAR
  • 8. INTRODUCING ANGULAR CLI • Angular Command Line Interface (CLI) is a powerful solution to allow code generation with simple commands. • It also helps us with following • Setting up Angular Project • Following best practices in Js world. • Testable Code • Modular Code. • Let’s Create “Hello World” application using Angular CLI.
  • 9. PREREQUISITES FOR “HELLO WORLD”. • Install TypeScript (if not installed) : npm install -g TypeScript • Install Angular Cli : npm install -g @angular/cli • Create New Project. : ng new ProjectName • Go To the directory : cd ProjectName • run the Project. : ng serve -o
  • 10. “HELLO WORLD” WITH ANGULAR CLI
  • 11. ANGULAR CLI - BASIC COMMANDS • dry run : --dry-run • skip npm : --skip-npm • default styles : ng set defaults.styleExt scss • routing : --routing • ng doc. • ng help • ng generate
  • 12. ANGULAR CLI - MORE COMMANDS • Module : ng g m ModuleName • Component : ng g c ComponentName • Class : ng g cl ClassName • Interface : ng g i InterfaceName • Enum : ng g e EnumName • Service : ng g s ServiceName • Directive : ng g d DirectiveName
  • 13. LIVE CODING : TODO APP • Requirements • Home Screen • Add new To-do • List all remaining To-do • List of Paused To-do
  • 14. LIVE CODING : TODO APP • Requirements • Home Screen • ToDo Card • Done • Delay • Delete
  • 15. LIVE CODING : TODO APP • Requirements • Home Screen • ToDo Card • History Page • Show all Complete ToDo • Chart / Graph
  • 16. LIVE CODING : TODO APP • Requirements • Home Screen • ToDo Card • History Page • Create Api • Node.Js as a backEnd
  • 18. IT’S EASY WITH CLI • ng build • ng build -p PortNumber • ng test • ng e2e • ng build --prod
  • 20. Survey link : http://bit.ly/NgCliSdc
  • 21. REFERENCES • Angular CLI (https://github.com/angular/angular-cli/) • PluralSight Course : Angular CLI by John Papa (https://app.pluralsight.com/library/courses/angular-cli/) • Angular CLI cheatsheet