SlideShare a Scribd company logo
Angular
JS Framework to Create a Single Page Application
- K.Yamunadevi
Developer (Level-1)
Getting Started
 Install Node.js
 In terminal or cmd give "npm install -g
@angular/cli". This will install angular cli (ng).
Npm=>Package Manager
 "ng new project-name" will create a new project
@Component
 Component are the main building block for tha
application
 "ng generate component component-name" or "ng g c
componentn-name" command is used to create a
component
 Each component consists of a HTML template,CSS
selector(optional),Typescript class and a testing file
 Also each component should be declared in
app.module.ts.
• @Component({
selector: 'app-component-overview',
templateUrl: './component-
overview.component.html',
styleUrls: ['./component-overview.component.css']
})
@NgModules
 "ng generate module module-name" or "ng g m
module-name" command is used to create a
component
 All the component and other dependent modules are to
be defined in the module class.
// imports
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// @NgModule decorator with its metadata
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule],
providers: [],
})
export class AppModule {}
Directives
 Directives are classes that add additional behavior to elements in
your Angular applications.
 Attribute Directive:
 change the appearance or behavior of an element, component, or
another directive.
NgClass—adds and removes a set of CSS classes.
NgStyle—adds and removes a set of HTML styles.
NgModel—adds two-way data binding to an HTML form element
 Structural directives
 directives that change the DOM layout by adding and removing
DOM elements.
NgIf—conditionally creates or disposes of subviews from the
template.
NgFor—repeat a node for each item in a list.
NgSwitch—a set of directives that switch among alternative views
Forms  Template Driven Forms
Created by Directives
 Reactive Forms
Created in component class
 Form Foundation Class
 FormControl=>tracks the value and validation status of an
individual form control.
 FormGroup=> tracks the same values and status for a collection of
form controls.
 FormArray=>tracks the same values and status for an array of form
controls.
Angular Basics: A Beginner's Guide to Web Development
Angular Basics: A Beginner's Guide to Web Development
Routing
 Defining a baic route
Other Routing Concepts includes
 LazyLoading
 Routing Guards
 Some common routing methods includes navigate( ),
routerLink, RouterLinkActive
const routes: Routes = [
{ path: 'first-component', component: FirstComponent },
{ path: 'second-component', component: SecondComponent },
];
@Injectable
(services)
 Decorator that marks a class as available to be
provided and injected as a dependency.
 Used for Sharing Data between Components
 All the HttpClient api call are given with the service
class
MyReferences
 https://angular.io/
 https://material.angular.io/
 "Angular Complete Guide"-Udemy Course by
Maxmillan
 "Angular HTTP Communication"-Udemy Course by
Brice Wilson
 SomeYoutube Channels as
ARC Tutorials
Code evloution
Code Nanban(in Tamil)
For Angular

More Related Content

PPTX
angularJs Workshop
PPTX
AngularJs Workshop SDP December 28th 2014
PPTX
Angular Js Get Started - Complete Course
PPTX
Angular Framework ppt for beginners and advanced
PPTX
Angular2 + rxjs
PDF
Angular 2 for Java Developers
PPT
introduction to Angularjs basics
PPTX
Angular Basics.pptx
angularJs Workshop
AngularJs Workshop SDP December 28th 2014
Angular Js Get Started - Complete Course
Angular Framework ppt for beginners and advanced
Angular2 + rxjs
Angular 2 for Java Developers
introduction to Angularjs basics
Angular Basics.pptx

Similar to Angular Basics: A Beginner's Guide to Web Development (20)

PPTX
mean stack
PPTX
Angular Directives
PPTX
Angular workshop - Full Development Guide
PPTX
Front end development with Angular JS
PPTX
Angular 9
PPTX
Angular Presentation
PDF
Building Blocks of Angular 2 and ASP.NET Core
PDF
Client Side MVC & Angular
PPTX
Unit 2 - Data Binding.pptx
PPTX
Angular js 2.0
PPTX
Angular Js Basics
PPTX
Angular js
PPTX
Spring Web MVC
PPTX
Angular js 2.0 beta
PPTX
Angular js
PDF
Angular custom directives
PPTX
Angular 2 in-1
PPTX
Migrating an Application from Angular 1 to Angular 2
PDF
Angular js interview question answer for fresher
PPTX
Understanding angular js
mean stack
Angular Directives
Angular workshop - Full Development Guide
Front end development with Angular JS
Angular 9
Angular Presentation
Building Blocks of Angular 2 and ASP.NET Core
Client Side MVC & Angular
Unit 2 - Data Binding.pptx
Angular js 2.0
Angular Js Basics
Angular js
Spring Web MVC
Angular js 2.0 beta
Angular js
Angular custom directives
Angular 2 in-1
Migrating an Application from Angular 1 to Angular 2
Angular js interview question answer for fresher
Understanding angular js
Ad

Recently uploaded (20)

PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
A Presentation on Artificial Intelligence
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPT
Teaching material agriculture food technology
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Electronic commerce courselecture one. Pdf
PPTX
Cloud computing and distributed systems.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
cuic standard and advanced reporting.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
MIND Revenue Release Quarter 2 2025 Press Release
A Presentation on Artificial Intelligence
Building Integrated photovoltaic BIPV_UPV.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Teaching material agriculture food technology
sap open course for s4hana steps from ECC to s4
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Machine learning based COVID-19 study performance prediction
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Electronic commerce courselecture one. Pdf
Cloud computing and distributed systems.
MYSQL Presentation for SQL database connectivity
cuic standard and advanced reporting.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Empathic Computing: Creating Shared Understanding
NewMind AI Weekly Chronicles - August'25-Week II
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Ad

Angular Basics: A Beginner's Guide to Web Development

  • 1. Angular JS Framework to Create a Single Page Application - K.Yamunadevi Developer (Level-1)
  • 2. Getting Started  Install Node.js  In terminal or cmd give "npm install -g @angular/cli". This will install angular cli (ng). Npm=>Package Manager  "ng new project-name" will create a new project
  • 3. @Component  Component are the main building block for tha application  "ng generate component component-name" or "ng g c componentn-name" command is used to create a component  Each component consists of a HTML template,CSS selector(optional),Typescript class and a testing file  Also each component should be declared in app.module.ts. • @Component({ selector: 'app-component-overview', templateUrl: './component- overview.component.html', styleUrls: ['./component-overview.component.css'] })
  • 4. @NgModules  "ng generate module module-name" or "ng g m module-name" command is used to create a component  All the component and other dependent modules are to be defined in the module class. // imports import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; // @NgModule decorator with its metadata @NgModule({ declarations: [AppComponent], imports: [BrowserModule], providers: [], }) export class AppModule {}
  • 5. Directives  Directives are classes that add additional behavior to elements in your Angular applications.  Attribute Directive:  change the appearance or behavior of an element, component, or another directive. NgClass—adds and removes a set of CSS classes. NgStyle—adds and removes a set of HTML styles. NgModel—adds two-way data binding to an HTML form element  Structural directives  directives that change the DOM layout by adding and removing DOM elements. NgIf—conditionally creates or disposes of subviews from the template. NgFor—repeat a node for each item in a list. NgSwitch—a set of directives that switch among alternative views
  • 6. Forms  Template Driven Forms Created by Directives  Reactive Forms Created in component class  Form Foundation Class  FormControl=>tracks the value and validation status of an individual form control.  FormGroup=> tracks the same values and status for a collection of form controls.  FormArray=>tracks the same values and status for an array of form controls.
  • 9. Routing  Defining a baic route Other Routing Concepts includes  LazyLoading  Routing Guards  Some common routing methods includes navigate( ), routerLink, RouterLinkActive const routes: Routes = [ { path: 'first-component', component: FirstComponent }, { path: 'second-component', component: SecondComponent }, ];
  • 10. @Injectable (services)  Decorator that marks a class as available to be provided and injected as a dependency.  Used for Sharing Data between Components  All the HttpClient api call are given with the service class
  • 11. MyReferences  https://angular.io/  https://material.angular.io/  "Angular Complete Guide"-Udemy Course by Maxmillan  "Angular HTTP Communication"-Udemy Course by Brice Wilson  SomeYoutube Channels as ARC Tutorials Code evloution Code Nanban(in Tamil) For Angular