Angular is a TypeScript-based framework for building single-page web applications. Some key points:
- Angular 14 is the latest version, released in June 2022. It introduced features like standalone components and typed forms.
- Angular provides advantages like cross-platform support, improved speed/performance, and support for unit testing.
- The Angular CLI is used to initialize, develop, and maintain Angular apps from the command line. Commands include ng new to create a new app and ng help to view available commands.
Overview of Angular 14, a TypeScript framework for SPAs. It's open-source, maintained by Google, and latest version as of June 2022.
Highlights benefits like cross-platform support, improved performance, faster development, and compatibility with UI frameworks like Bootstrap.
Lists necessary system requirements for Angular, including OS options, Node.js version 16.15, and Angular CLI installation commands.
Introduction to Angular CLI, its use for developing applications, and basic commands to create an app and access help.
Details on creating basic components, inline styles, inline templates, and standalone components using CLI commands.
Explains basic routing concepts, including routes configurations, router directives, child routing, module routing, and lazy loading.
Overview of data binding methods in Angular: Interpolation, Event Binding, Property Binding, and Two-Way Binding.
Defines directives used to enhance elements, focusing on Components, Attribute Directives (ngClass, ngStyle, ngModel), and Structural Directives (ngIf, ngFor).
An enumeration of fundamental topics covered in Angular, including configuration, application creation, and folder structure.
Continues listing important Angular topics such as two-way binding, event handling, directives, services, and API consumption.
Further expansions on Angular topics, focusing on forms, state management, notifications, and unit testing.
Details steps to create authentication features in Angular, including login, CRUD operations, role-based access, and refresh token logic.
Introduces new functionalities in Angular 14 like standalone components, typed forms, and improved developer diagnostics.
Describes standalone components, their creation, and context regarding their independence from traditional NgModules.
Explains the Typed Forms feature for Reactive Forms, emphasizing stricter type safety for form controls under strict mode.
Provides resources for learning Angular topics like authentication, data transfer between components, and using RXJS.
Continues to offer additional resources for unit testing, state management, and a complete Angular tutorial.
Thanks for attending with a sign-off from NIHIRA TECHIEES.
Introduction
• Angular isa typescript based framework used to
create single page web application
• Angular is open source no cost involved
• It’s maintained by Google also having long term
support
• Latest Version 14 (2nd June 2022)
• Initially start’s from Angular Js .Angular 2 onwards
they changed name in to framework
3.
Advantage
• Cross platformsupport
• Improved speed & performance
• Faster Development process
• Supports for unit testing
• Light weight application
• We can use bootstrap & Material UI for better UI
4.
System requirements
• Operatingsystem we can use Windows , MAC or
LINUX
• Node.js latest version 16.15
• Install angular CLI
npm install -g @angular/cli
• UnInstall angular CLI
npm uninstall -g @angular/cli
• Installing specific version of angular CLI
npm install -g @angular/cli@12
5.
Angular CLI
• TheAngular CLI is a command-line interface tool that
you use to initialize, develop, scaffold, and maintain
Angular applications directly from a command shell.
• Create First app
ng new <application name>
• Get all available commands
ng help
6.
Components
• Basic Components
ngg c name
• Components Inline style
ng g c name –inline-style
• Components Inline Template
ng g c name –inline-template
• Stand Alone Component
ng g c name –standalone
7.
Routing
• Basic Routing
1,Routes – this is the place for mapping path & component
2, routerLink – this is directive for navigate different routes
3, router-outlet– this is place for display the matched route
• Child routing (Group Routing)
• Module Routing
• Lazy Loading
• Redirect 404 page if route not found
• Get Route Values
Topics
• Two waybinding
• Property & Style Binding
• Event Handling
• Directives
• Services
• Data transfer b/w components
• Angular / Route Guard
• Consume External API
• Interceptor
12.
Topics
• Forms inAngular
• Material UI
• Template Driven forms
• Reactive forms
• RXjs
• State management
• Notifications using alertify js
• Unit Testing
13.
Implement Authentication
• CreateLogin & Signup screen with functions
• Activate/Deactivate user by admin user
• User CRUD Operations
• Implement role based authentication & dynamic
menu generations
• Implement Refresh Token Logic
• New Features in Angular 14
• Interview Questions
14.
New Features inAngular 14
• Standalone component
• Typed Forms
• Streamlined page title accessibility (TitleStrategy)
• Extended developer diagnostics (ng completion)
• Bind to protected component members
• Optional injectors in Embedded Views
• NgModel OnPush
15.
Standalone component
• Standalonecomponent has the flag “standalone” we
need to set value true
• Not required to included in ngModule
• We can import required modules in the component
it self
• Create component using below command
ng g c <component name> --standalone
16.
Typed Forms
• Thisfeature is only for Reactive forms
• For using this feature tsconfig.js should be strict
mode
• Typed forms ensure that the values inside of form
controls, groups, and arrays are type safe across the
entire API surface.
• This enables safer forms,
• especially for deeply nested complex cases.
• If you want use older version you can use untyped
one
17.
Topic Links
• AngularAuthentication – Playlist
https://www.youtube.com/playlist?list=PLfyWdpsiUiPD7kYHujLg3Vl6GV69yQP
gD
• RXJS – Playlist
https://www.youtube.com/playlist?list=PLfyWdpsiUiPDuxyDGqAoq0l_T6NlRZq6C
• .NET Core API – Video
https://www.youtube.com/watch?v=uWhbcR06VcA
• Angular Data Transfer b/w components
https://www.youtube.com/watch?v=03FqsZ_XJEc