Angular is a platform and framework for building single-page client applications using HTML and TypeScript. The basic building blocks of Angular include components, modules, directives, decorators, pipes, data binding, templates, and services. Components define views with templates and logic. Modules organize related code. Directives modify DOM elements. Decorators add metadata. Pipes transform data. Data binding syncs data and UI. Templates define views. Services provide reusable functionality.
The document provides an overview of Angular including:
- Angular is an open source JavaScript framework for building web applications in HTML and JavaScript. It provides services and objects to create applications faster.
- Typescript is a programming language that adds optional static typing to JavaScript. It compiles to JavaScript.
- Modules, components, templates, metadata, services, and routes are architectural concepts in Angular that define application structure and functionality.
- Components control views and consist of templates, classes, and metadata. Services provide shared functionality across modules. Routes enable navigation between views.
Angular Kickstart document provides an overview of Angular including:
- Angular is a client side JavaScript framework that allows building of single page applications.
- A single page application loads initial content via the first page load and subsequent content without reloading the page.
- The document discusses Angular features such as modularity, performance, TypeScript support, and building blocks like modules, components and directives. It also provides instructions on setting up the development environment for Angular applications.
This document contains summaries of 75 frequently asked Angular interview questions. It begins by defining Angular as a JavaScript framework developed by Google for building applications using web technologies like HTML, CSS, and JavaScript. It then goes on to summarize questions about setting up the Angular development environment, Angular CLI, components, data binding, directives, lifecycle hooks, and various methods for sharing data between components.
Presentation about new Angular 9.
It gives introduction about angular framework.
Provides information about why we use angular,
additional features and fixes from old versions. It will clearly explain how to create a new angular project and how to use angular commands and their usages.
It will also explain about the key components like angular architecture, routing, dependency injection etc.,
Angular Js Get Started - Complete CourseEPAM Systems
This document provides an introduction and overview of AngularJS, including:
- AngularJS is a JavaScript framework for building dynamic web applications and sites. It allows building applications that run in web browsers using HTML.
- Key AngularJS concepts covered include directives, controllers, modules, services, filters, forms, routing and two-way data binding.
- Examples are provided to demonstrate how to create AngularJS applications, controllers, directives, filters and more.
- Custom directives and services can be created to extend the functionality of AngularJS applications.
AngularJS is a JavaScript framework that allows developers to create single-page applications. It provides features like data binding, directives, dependency injection and MVC architecture. The presentation provided an overview of AngularJS, its core features and concepts like modules, controllers, services and routing. Key benefits of AngularJS include building reusable components, easier testing and single page application capabilities.
Angular is a platform and framework for building single-page client applications using HTML and TypeScript. The basic building blocks of Angular include components, modules, directives, decorators, pipes, data binding, templates, and services. Components define views with templates and logic. Modules organize related code. Directives modify DOM elements. Decorators add metadata. Pipes transform data. Data binding syncs data and UI. Templates define views. Services provide reusable functionality.
The document provides an overview of Angular including:
- Angular is an open source JavaScript framework for building web applications in HTML and JavaScript. It provides services and objects to create applications faster.
- Typescript is a programming language that adds optional static typing to JavaScript. It compiles to JavaScript.
- Modules, components, templates, metadata, services, and routes are architectural concepts in Angular that define application structure and functionality.
- Components control views and consist of templates, classes, and metadata. Services provide shared functionality across modules. Routes enable navigation between views.
Angular Kickstart document provides an overview of Angular including:
- Angular is a client side JavaScript framework that allows building of single page applications.
- A single page application loads initial content via the first page load and subsequent content without reloading the page.
- The document discusses Angular features such as modularity, performance, TypeScript support, and building blocks like modules, components and directives. It also provides instructions on setting up the development environment for Angular applications.
This document contains summaries of 75 frequently asked Angular interview questions. It begins by defining Angular as a JavaScript framework developed by Google for building applications using web technologies like HTML, CSS, and JavaScript. It then goes on to summarize questions about setting up the Angular development environment, Angular CLI, components, data binding, directives, lifecycle hooks, and various methods for sharing data between components.
Presentation about new Angular 9.
It gives introduction about angular framework.
Provides information about why we use angular,
additional features and fixes from old versions. It will clearly explain how to create a new angular project and how to use angular commands and their usages.
It will also explain about the key components like angular architecture, routing, dependency injection etc.,
Angular Js Get Started - Complete CourseEPAM Systems
This document provides an introduction and overview of AngularJS, including:
- AngularJS is a JavaScript framework for building dynamic web applications and sites. It allows building applications that run in web browsers using HTML.
- Key AngularJS concepts covered include directives, controllers, modules, services, filters, forms, routing and two-way data binding.
- Examples are provided to demonstrate how to create AngularJS applications, controllers, directives, filters and more.
- Custom directives and services can be created to extend the functionality of AngularJS applications.
AngularJS is a JavaScript framework that allows developers to create single-page applications. It provides features like data binding, directives, dependency injection and MVC architecture. The presentation provided an overview of AngularJS, its core features and concepts like modules, controllers, services and routing. Key benefits of AngularJS include building reusable components, easier testing and single page application capabilities.
Migrating an application from Angular 1 to Angular 2 Ross Dederer
This document discusses migrating from Angular 1 to Angular 2. It provides an overview of Angular 2 including its modular and component-based architecture. It also discusses TypeScript and how it is used with Angular 2. The document then walks through migrating a sample Silverlight application to an equivalent Angular 2 application, covering converting the viewmodel to a component and porting the view. It emphasizes keeping a similar MVVM pattern and discusses new Angular 2 concepts like templates, metadata and bindings.
Angular is a platform for building web applications using Typescript. It helps structure code and remove trivial code. Angular applications are built with modules that organize functionality. The root module is AppModule. Components control views and interact with templates. Data binding in templates allows communication between components. Directives alter DOM. Services contain business logic rather than components. Dependency injection provides services to components. Routing uses routes to map URLs to components.
Migrating an Application from Angular 1 to Angular 2 Ross Dederer
This document discusses Angular 2 and summarizes Ross Dederer's presentation on migrating an application from Angular 1 to Angular 2. Some key points covered include:
- Angular 2 is more modular, modern, component-based and uses TypeScript.
- Components provide better encapsulation and Angular 2 is simpler and more performant than Angular 1.
- Migrating involves converting code to TypeScript, keeping the MVVM pattern, and porting the viewmodel/component and view.
- The presentation demonstrates migrating a sample application that uses Wijmo controls from Angular 1 to Angular 2.
AngularJS is an open source JavaScript framework for building dynamic web applications. It enhances HTML with custom directives and bindings to enrich client-side web applications with reusable components. Key features include two-way data binding, reusable components, support for MVC/MVVM design patterns, end-to-end testing, cross-browser compatibility, and services. AngularJS allows developers to organize applications into modules and controllers to keep code clean and reusable.
AngularJs Workshop SDP December 28th 2014Ran Wahle
This document provides an overview and agenda for a training on AngularJS. It introduces key concepts in AngularJS like modules, dependency injection, data binding with controllers and scopes, services, filters, directives, forms, and routing. Code examples are provided to demonstrate creating modules, controllers, services, binding data between the view and model, and using built-in and custom directives. The training will cover building AngularJS applications with a focus on best practices.
AngularJS is a JavaScript framework for building single-page web applications. It augments HTML to provide MVC capabilities and allows developers to write dynamic web apps without having to manipulate the DOM directly. AngularJS uses scopes to bind models and views, and filters to format data for display. Directives extend HTML and allow developers to create reusable components. Modules are used to organize code and keep the global namespace clean.
AngularJS is an open-source JavaScript framework for building dynamic web applications. It uses HTML as the template language and allows extending HTML vocabulary for the application. The key concepts covered in the document include modules and dependency injection, data binding using controllers and scopes, services, filters, form validation, directives, and routing. Various AngularJS features like modules, controllers, services, directives etc. are demonstrated via code examples. The document provides an introduction to core AngularJS concepts through explanations, code samples and a demo.
Components are the most basic UI building block of an Angular app. An Angular app contains a tree of Angular components.
Angular components are a subset of directives, always associated with a template. Unlike other directives, only one component can be instantiated per an element in a template.
A component must belong to an NgModule in order for it to be available to another component or application. To make it a member of an NgModule, list it in the declarations field of the NgModule metadata.
The document provides an overview of AngularJS, including its core concepts and how it can be used with Java frameworks like Spring, Struts, and Hibernate. AngularJS is an open-source JavaScript framework that assists with building single-page applications using MVC architecture. It allows developers to specify custom HTML tags and directives to control element behavior. The document then discusses key AngularJS concepts like data binding, directives, expressions, filters, controllers, dependency injection, views/routing, and services. It provides examples of how these concepts work and how AngularJS can integrate with Java frameworks in a sample reader application divided into multiple sub-projects.
Top Angular Interview Questions and answers would help freshers and experienced candidates clear any Angular interview .Do let us know the Angular questions you faced in the interview that are covered ...
This document provides an overview of AngularJS, including its core features and concepts. It discusses how AngularJS is a client-side JavaScript framework that uses MVC architecture. Key points covered include two-way data binding, templates, dependency injection, modules, controllers, views, models, scopes, filters, services, and directives. Custom directives and their creation are demonstrated. The document aims to give attendees an introduction to AngularJS and its basic building blocks.
This document provides an overview of Angular 2 for Java developers. It discusses that Angular 2 is a complete rewrite of AngularJS with a focus on components, better performance, and streamlined dependency injection. It also covers key aspects of Angular 2 like project structure, templates, data binding, dependency injection, routing, and use of reactive programming with RxJS. Sample code examples are provided to demonstrate concepts like components, services, dependency injection, routing, and use of observables.
Angular workshop - Full Development GuideNitin Giri
AngularJS provides powerful tools for building single page applications, including data binding, scopes, controllers, directives, filters and forms validation. It follows an MVC pattern with two-way data binding between models and views. Key features include directives for creating custom HTML elements, filters for formatting data and built-in validation for forms. AngularJS aims to improve frontend development by reducing code and server interactions.
The aim of these series is exploring Angular 2 and it's amazing features. with the simplest way and the meaningful examples and labs to be practiced. Good Luck in Exploring :D
Angular IO Overview
The presenter introduces foundational Angular IO concepts like components, TypeScript, and the Angular CLI tool. Angular IO is a component-based framework for building single page applications. It uses TypeScript for strong typing. Components couple custom HTML elements to functionality. The Angular CLI helps generate and build Angular applications.
ReactJS is a popular JavaScript library for building user interfaces. It allows developers to create reusable UI components and was developed by Facebook. Some major companies that use React include Instagram, Netflix, Yahoo Mail, and WhatsApp. React can be installed on Ubuntu and Windows systems. Key features of React include components, props, state, and JSX syntax which allows HTML-like markup to be written in JavaScript.
Integrating TypeScript with popular frameworks like React or Angular.pdfMobMaxime
Do you also want to catch coding errors while in compilation early in the development process? Follow the guide below to integrate TypeScript into React or Angular.
https://youtu.be/_yLt_abcK2w
Angular is a TypeScript-based open-source front-end platform that makes it easy to build applications with in web/mobile/desktop. The major features of this framework such as declarative templates, dependency injection, end to end tooling, and many more other features are used to ease the development.
Angular 7 is a Javascript framework built around the concept of components, and more precisely, with the Web Components standard in mind. It was rewritten from scratch by the Angular team using Typescript (although we can use it with ES5, ES6, or Dart as well).
Angular 7 is a big change for us compared to 1.x. Because it is a completely different framework than 1.x, and is not backward-compatible. Angular 7 is written entirely in Typescript and meets the ECMAScript 6 specification
angular interview questions and answers, angular 7 interview questions and answers, angular interview question, angular interview questions and answers for experienced, angular 7 interview questions, angular 6 interview questions,
angular interview questions, angular 6 interview questions and answers, angular 2 interview questions, angular7, angular 5 interview questions, angular interview, angular 2 interview questions and answers, angular questions and answers
Gender and Mental Health - Counselling and Family Therapy Applications and In...PsychoTech Services
A proprietary approach developed by bringing together the best of learning theories from Psychology, design principles from the world of visualization, and pedagogical methods from over a decade of training experience, that enables you to: Learn better, faster!
Migrating an application from Angular 1 to Angular 2 Ross Dederer
This document discusses migrating from Angular 1 to Angular 2. It provides an overview of Angular 2 including its modular and component-based architecture. It also discusses TypeScript and how it is used with Angular 2. The document then walks through migrating a sample Silverlight application to an equivalent Angular 2 application, covering converting the viewmodel to a component and porting the view. It emphasizes keeping a similar MVVM pattern and discusses new Angular 2 concepts like templates, metadata and bindings.
Angular is a platform for building web applications using Typescript. It helps structure code and remove trivial code. Angular applications are built with modules that organize functionality. The root module is AppModule. Components control views and interact with templates. Data binding in templates allows communication between components. Directives alter DOM. Services contain business logic rather than components. Dependency injection provides services to components. Routing uses routes to map URLs to components.
Migrating an Application from Angular 1 to Angular 2 Ross Dederer
This document discusses Angular 2 and summarizes Ross Dederer's presentation on migrating an application from Angular 1 to Angular 2. Some key points covered include:
- Angular 2 is more modular, modern, component-based and uses TypeScript.
- Components provide better encapsulation and Angular 2 is simpler and more performant than Angular 1.
- Migrating involves converting code to TypeScript, keeping the MVVM pattern, and porting the viewmodel/component and view.
- The presentation demonstrates migrating a sample application that uses Wijmo controls from Angular 1 to Angular 2.
AngularJS is an open source JavaScript framework for building dynamic web applications. It enhances HTML with custom directives and bindings to enrich client-side web applications with reusable components. Key features include two-way data binding, reusable components, support for MVC/MVVM design patterns, end-to-end testing, cross-browser compatibility, and services. AngularJS allows developers to organize applications into modules and controllers to keep code clean and reusable.
AngularJs Workshop SDP December 28th 2014Ran Wahle
This document provides an overview and agenda for a training on AngularJS. It introduces key concepts in AngularJS like modules, dependency injection, data binding with controllers and scopes, services, filters, directives, forms, and routing. Code examples are provided to demonstrate creating modules, controllers, services, binding data between the view and model, and using built-in and custom directives. The training will cover building AngularJS applications with a focus on best practices.
AngularJS is a JavaScript framework for building single-page web applications. It augments HTML to provide MVC capabilities and allows developers to write dynamic web apps without having to manipulate the DOM directly. AngularJS uses scopes to bind models and views, and filters to format data for display. Directives extend HTML and allow developers to create reusable components. Modules are used to organize code and keep the global namespace clean.
AngularJS is an open-source JavaScript framework for building dynamic web applications. It uses HTML as the template language and allows extending HTML vocabulary for the application. The key concepts covered in the document include modules and dependency injection, data binding using controllers and scopes, services, filters, form validation, directives, and routing. Various AngularJS features like modules, controllers, services, directives etc. are demonstrated via code examples. The document provides an introduction to core AngularJS concepts through explanations, code samples and a demo.
Components are the most basic UI building block of an Angular app. An Angular app contains a tree of Angular components.
Angular components are a subset of directives, always associated with a template. Unlike other directives, only one component can be instantiated per an element in a template.
A component must belong to an NgModule in order for it to be available to another component or application. To make it a member of an NgModule, list it in the declarations field of the NgModule metadata.
The document provides an overview of AngularJS, including its core concepts and how it can be used with Java frameworks like Spring, Struts, and Hibernate. AngularJS is an open-source JavaScript framework that assists with building single-page applications using MVC architecture. It allows developers to specify custom HTML tags and directives to control element behavior. The document then discusses key AngularJS concepts like data binding, directives, expressions, filters, controllers, dependency injection, views/routing, and services. It provides examples of how these concepts work and how AngularJS can integrate with Java frameworks in a sample reader application divided into multiple sub-projects.
Top Angular Interview Questions and answers would help freshers and experienced candidates clear any Angular interview .Do let us know the Angular questions you faced in the interview that are covered ...
This document provides an overview of AngularJS, including its core features and concepts. It discusses how AngularJS is a client-side JavaScript framework that uses MVC architecture. Key points covered include two-way data binding, templates, dependency injection, modules, controllers, views, models, scopes, filters, services, and directives. Custom directives and their creation are demonstrated. The document aims to give attendees an introduction to AngularJS and its basic building blocks.
This document provides an overview of Angular 2 for Java developers. It discusses that Angular 2 is a complete rewrite of AngularJS with a focus on components, better performance, and streamlined dependency injection. It also covers key aspects of Angular 2 like project structure, templates, data binding, dependency injection, routing, and use of reactive programming with RxJS. Sample code examples are provided to demonstrate concepts like components, services, dependency injection, routing, and use of observables.
Angular workshop - Full Development GuideNitin Giri
AngularJS provides powerful tools for building single page applications, including data binding, scopes, controllers, directives, filters and forms validation. It follows an MVC pattern with two-way data binding between models and views. Key features include directives for creating custom HTML elements, filters for formatting data and built-in validation for forms. AngularJS aims to improve frontend development by reducing code and server interactions.
The aim of these series is exploring Angular 2 and it's amazing features. with the simplest way and the meaningful examples and labs to be practiced. Good Luck in Exploring :D
Angular IO Overview
The presenter introduces foundational Angular IO concepts like components, TypeScript, and the Angular CLI tool. Angular IO is a component-based framework for building single page applications. It uses TypeScript for strong typing. Components couple custom HTML elements to functionality. The Angular CLI helps generate and build Angular applications.
ReactJS is a popular JavaScript library for building user interfaces. It allows developers to create reusable UI components and was developed by Facebook. Some major companies that use React include Instagram, Netflix, Yahoo Mail, and WhatsApp. React can be installed on Ubuntu and Windows systems. Key features of React include components, props, state, and JSX syntax which allows HTML-like markup to be written in JavaScript.
Integrating TypeScript with popular frameworks like React or Angular.pdfMobMaxime
Do you also want to catch coding errors while in compilation early in the development process? Follow the guide below to integrate TypeScript into React or Angular.
https://youtu.be/_yLt_abcK2w
Angular is a TypeScript-based open-source front-end platform that makes it easy to build applications with in web/mobile/desktop. The major features of this framework such as declarative templates, dependency injection, end to end tooling, and many more other features are used to ease the development.
Angular 7 is a Javascript framework built around the concept of components, and more precisely, with the Web Components standard in mind. It was rewritten from scratch by the Angular team using Typescript (although we can use it with ES5, ES6, or Dart as well).
Angular 7 is a big change for us compared to 1.x. Because it is a completely different framework than 1.x, and is not backward-compatible. Angular 7 is written entirely in Typescript and meets the ECMAScript 6 specification
angular interview questions and answers, angular 7 interview questions and answers, angular interview question, angular interview questions and answers for experienced, angular 7 interview questions, angular 6 interview questions,
angular interview questions, angular 6 interview questions and answers, angular 2 interview questions, angular7, angular 5 interview questions, angular interview, angular 2 interview questions and answers, angular questions and answers
Similar to Angular Framework ppt for beginners and advanced (20)
Gender and Mental Health - Counselling and Family Therapy Applications and In...PsychoTech Services
A proprietary approach developed by bringing together the best of learning theories from Psychology, design principles from the world of visualization, and pedagogical methods from over a decade of training experience, that enables you to: Learn better, faster!
How to Make a Field Mandatory in Odoo 17Celine George
In Odoo, making a field required can be done through both Python code and XML views. When you set the required attribute to True in Python code, it makes the field required across all views where it's used. Conversely, when you set the required attribute in XML views, it makes the field required only in the context of that particular view.
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...PECB
Denis is a dynamic and results-driven Chief Information Officer (CIO) with a distinguished career spanning information systems analysis and technical project management. With a proven track record of spearheading the design and delivery of cutting-edge Information Management solutions, he has consistently elevated business operations, streamlined reporting functions, and maximized process efficiency.
Certified as an ISO/IEC 27001: Information Security Management Systems (ISMS) Lead Implementer, Data Protection Officer, and Cyber Risks Analyst, Denis brings a heightened focus on data security, privacy, and cyber resilience to every endeavor.
His expertise extends across a diverse spectrum of reporting, database, and web development applications, underpinned by an exceptional grasp of data storage and virtualization technologies. His proficiency in application testing, database administration, and data cleansing ensures seamless execution of complex projects.
What sets Denis apart is his comprehensive understanding of Business and Systems Analysis technologies, honed through involvement in all phases of the Software Development Lifecycle (SDLC). From meticulous requirements gathering to precise analysis, innovative design, rigorous development, thorough testing, and successful implementation, he has consistently delivered exceptional results.
Throughout his career, he has taken on multifaceted roles, from leading technical project management teams to owning solutions that drive operational excellence. His conscientious and proactive approach is unwavering, whether he is working independently or collaboratively within a team. His ability to connect with colleagues on a personal level underscores his commitment to fostering a harmonious and productive workplace environment.
Date: May 29, 2024
Tags: Information Security, ISO/IEC 27001, ISO/IEC 42001, Artificial Intelligence, GDPR
-------------------------------------------------------------------------------
Find out more about ISO training and certification services
Training: ISO/IEC 27001 Information Security Management System - EN | PECB
ISO/IEC 42001 Artificial Intelligence Management System - EN | PECB
General Data Protection Regulation (GDPR) - Training Courses - EN | PECB
Webinars: https://pecb.com/webinars
Article: https://pecb.com/article
-------------------------------------------------------------------------------
For more information about PECB:
Website: https://pecb.com/
LinkedIn: https://www.linkedin.com/company/pecb/
Facebook: https://www.facebook.com/PECBInternational/
Slideshare: http://www.slideshare.net/PECBCERTIFICATION
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumMJDuyan
(𝐓𝐋𝐄 𝟏𝟎𝟎) (𝐋𝐞𝐬𝐬𝐨𝐧 𝟏)-𝐏𝐫𝐞𝐥𝐢𝐦𝐬
𝐃𝐢𝐬𝐜𝐮𝐬𝐬 𝐭𝐡𝐞 𝐄𝐏𝐏 𝐂𝐮𝐫𝐫𝐢𝐜𝐮𝐥𝐮𝐦 𝐢𝐧 𝐭𝐡𝐞 𝐏𝐡𝐢𝐥𝐢𝐩𝐩𝐢𝐧𝐞𝐬:
- Understand the goals and objectives of the Edukasyong Pantahanan at Pangkabuhayan (EPP) curriculum, recognizing its importance in fostering practical life skills and values among students. Students will also be able to identify the key components and subjects covered, such as agriculture, home economics, industrial arts, and information and communication technology.
𝐄𝐱𝐩𝐥𝐚𝐢𝐧 𝐭𝐡𝐞 𝐍𝐚𝐭𝐮𝐫𝐞 𝐚𝐧𝐝 𝐒𝐜𝐨𝐩𝐞 𝐨𝐟 𝐚𝐧 𝐄𝐧𝐭𝐫𝐞𝐩𝐫𝐞𝐧𝐞𝐮𝐫:
-Define entrepreneurship, distinguishing it from general business activities by emphasizing its focus on innovation, risk-taking, and value creation. Students will describe the characteristics and traits of successful entrepreneurs, including their roles and responsibilities, and discuss the broader economic and social impacts of entrepreneurial activities on both local and global scales.
This document provides an overview of wound healing, its functions, stages, mechanisms, factors affecting it, and complications.
A wound is a break in the integrity of the skin or tissues, which may be associated with disruption of the structure and function.
Healing is the body’s response to injury in an attempt to restore normal structure and functions.
Healing can occur in two ways: Regeneration and Repair
There are 4 phases of wound healing: hemostasis, inflammation, proliferation, and remodeling. This document also describes the mechanism of wound healing. Factors that affect healing include infection, uncontrolled diabetes, poor nutrition, age, anemia, the presence of foreign bodies, etc.
Complications of wound healing like infection, hyperpigmentation of scar, contractures, and keloid formation.
2. What is Angular?
Angular is a JavaScript framework to build more interactive web applications.
It is designed for both Web, Desktop and Mobile platforms.
Angular is the next version of most successful AngularJS 1.x, which was released in 2010.
Angular was completely rewritten from scratch in TypeScript, which is superset of JavaScript.
Angular was finally released on 14th Sep, 2016. It is called Angular or Angular 2.
Angular 4 was released in March, 2017 and there was no Angular 3.
Angular 5 was released in Nov, 2017.
Angular 6 was released in May, 2018.
Angular 7 was released in Oct, 2018.
Angular 8 was released in May, 2019.
Angular 9 was released in Feb, 2020.
It has been optimized for developer productivity, small payload size, and performance.
Developed using TypeScript, which is Microsoft’s extension of JavaScript that allows use of
all ES 2015
(ECMAScript 6) features and adds type checking and object-oriented features like interfaces.
You can write code in either JavaScript or TypeScript or Dart.
3. Setting Up Development Environment
Install Node.js and NPM
Install Angular CLI
Install Visual Studio Code or Similar IDE
Create a new project using Angular CLI
Open project folder in Visual Studio Code
Start server using NodeJS
4. Installing Node.JS and NPM
Node.js is used to run JavaScript on server and provide environment for build tools.
NPM is used to manage packages related to JavaScript libraries.
NPM itself is a Node application.
To install, go to https://nodejs.org/en/download and download installer (.msi) for 32-bit or
64-bit.
Run .MSI file to install Node.js into your system. It is typically installed into c:Program
Filesnodejs folder.
It installs Node.js and NPM.
It also sets system path to include Node and NPM.
Go to command prompt and check their versions using following commands in console.
> node -v
> npm -v
5. Angular CLI - Command Line Interface
for Angular Applications.
It needs Node 6.9.x or higher, together
with NPM 3.x.x or higher.
Install Angular CLI using NPM as
follows: > npm install -g
@angular/cli
6. Using Angular CLI
Give the following command in console to create a new Angular Project. It creates the following
directory structure:
ng new
demo
7. Start Server
While in project folder (first), enter the following command to start server.
Server watches your files and rebuilds app whenever you make changes to files in folder.
ng serve
Go to browser and navigate to following URL:
It is possible to start server on a different port number than default (4200) as follows:
ng serve –port 3000
http://localhost:4200
8. Important files in project folder
app/app.module.ts
Defines AppModule, the root module that tells Angular how to assemble the application. Right now it declares
only
the AppComponent.
app/app.component.{ts,html,css,spec.ts}
Defines the AppComponent along with an HTML template, CSS stylesheet, and a unit test. It is the root
component
of what will become a tree of nested components as the application evolves.
index.html
The main HTML page that is served when someone visits your site. Most of the time you'll never need to edit it.
The CLI automatically adds all js and css files when building your app, so you never need to add any script or link
tags here manually.
main.ts
The main entry point for your app. Compiles the application with the JIT compiler and bootstraps the application's
root module (AppModule) to run in the browser.
10. Module
A module is a class that is decorated with @NgModule decorator.
Every application contains at least one module called root module,
conventionally called as AppModule.
NgModule decorator provides information about module using properties listed
below:
Declaration – Classes that belong to this module. They may be
components, directives and pipes.
Exports – The subset of declarations that should be visible to other
modules.
Imports – Specifies modules whose exported classes are needed in
this module.
Bootstrap – Specifies the main application view – root component. It
is the base for the rest of the application.
12. Angular Module vs. JavaScript Module
A module in Angular is a class decorated with @NgModule decorator.
Whereas a module in JavaScript is a file and all objects defined in the file belong to that
module.
JavaScript module exports some objects using export keyword and they can be imported in
other modules
using import statement.
Angular ships a couple of JavaScript modules each beginning with @angular prefix.
In order to use objects in those modules, we need to import them using import statement
in JavaScript.
import { Component } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
13. Component
A component controls a part of the screen called view.
Every component is a class with its own data and code.
A component may depend on services that are injected using dependency injection.
The template, metadata, and component together describe a view.
Components are decorated with @Component decorator through which we specify
template, styles and
selector (tag) related to component.
Properties like templateUrl, styleUrl and providers can also be used.
14. Template
Component's view is defined with its companion template.
A template is in the form of HTML that tells Angular how to render the component.
Template is the user interface (UI) of component.
Template can use the following:
HTML
Interpolation {{ …}}
Structural and Attribute directives
Data binding
Template reference variables
Pipes
15. When you put properties in view template using {{ }}, it is called interpolation.
Angular updates the display whenever property changes.
The context of the expression is component instance that is associated with the view.
The expression is evaluated, converted to string and then sent to client.
From the expression, we can call methods of component associated with view.
The target of the template expression may be HTML element, a component, or a directive.
In case of assigning value to a property, template expression may appear in double quotes.
Interpolation
<span [hidden]="isNew">Modified</span>
<img src="{{filename}}" />
16. Template Statement
A template statement responds to an event raised by a binding target such as an element,
component, or
directive.
The template statement parser differs from the template expression parser and specifically supports
both basic assignment (=) and chaining expressions (with ; or ,).
Template statements cannot refer to anything in the global namespace. They can NOT refer
to window or document. They cannot call console.log or Math.max.
The following expressions of JavaScript are NOT allowed:
new
increment and decrement operators, ++ and --
operator assignment, such as += and -=
the bitwise operators | and &
the template expression operators
<button (click)="calculate()">Calculate</button>
<button (click)="onSave($event)">Save</button>
17. Data Binding
Data binding allows copying values from
Component properties to attributes of
HTML elements.
Following are different bindings available
Property Binding
Event Binding
Attribute binding
Class binding
Style binding
18. Property Binding
Binds value to a property in HTML element or Angular Component.
Target property must be a property and not just an attribute in DOM element.
{{expression}}
[targetproperty]="expression"
bind-targetproperty="expression"
<img [src]="heroImageUrl">
<img bind-src="heroImageUrl">
<img src="{{imageUrl}}">
19. HTML Attribute vs. DOM Property
Attributes are defined by HTML.
Properties are defined by the DOM (Document Object Model).
A few HTML attributes have 1:1 mapping to properties. Example: id
Some HTML attributes don't have corresponding properties. Example: colspan
Some DOM properties don't have corresponding attributes. Example: innerHTML
Value of property might change at runtime but value of attribute doesn’t change.
Example: value
Angular Property Binding deals with DOM properties and not HTML attributes
20. Attribute Binding
Sets the value of an attribute directly.
Must be used when there is no element
property to bind.
Attribute binding syntax resembles
property binding.
Start with the prefix attr, followed by a
dot (.) and the name of the attribute.
You then set the attribute value, using an
expression that resolves to a string.
<td [attr.colspan]="noCols">Value</td>
Angular Expression
21. Class Binding
Adds or removes CSS class names from element's class attribute.
Class binding syntax resembles property binding.
Instead of an element property between brackets, start with the prefix class, optionally
followed by a dot (.) and the name of a CSS class - [class.classname].
Angular adds the class when the template expression evaluates to true. It
removes the class when the expression is false.
NgClass directive is usually preferred when managing multiple class names at the
same time.
<div [class.special]="isSpecial">Special Offer</div>
Angular Expression
22. Style Binding
Sets inline styles.
Instead of an element property between brackets, start with the prefix style, followed by a
dot (.) and the
name of a CSS style property: [style.style-property].
NgStyle directive is usually preferred when setting multiple styles at the same time.
<button [style.color]="isSpecial ? 'red': 'green'">Show Details</button>
<button [style.background-color]="canSave ? 'cyan': 'grey'">Save</button>
23. Event Binding
Event binding syntax consists of a target event name within parentheses on the left of an
equal sign, and a
quoted template statement on the right.
The binding conveys information about the event, including data values,
through an event object named $event.
If the name fails to match an element event, Angular reports an error.
<button (click)="onSave()">Save</button>
<button on-click="onSave()">Save</button>
24. Attribute Directives
These attributes are used like attributes of HTML elements.
They modify the behavior of HTML elements.
ngClass Add and remove a set of CSS classes
ngStyle Add and remove a set of HTML styles
ngModel Two-way data binding to an HTML form
element
25. ngClass Directive
Used to add or remove many CSS classes at the same time.
Bind ngClass to a key:value object where each key of the object is a CSS class
name; its value is true if the
class should be added, false if it should be removed.
currentClasses = {"special" : true, "big" : true};
<div [ngClass]="currentClasses"> … </div>
26. ngStyle Directive
Used to set many inline styles at the same time.
Bind ngStyle to a key:value control object where each key of the object is a style name
and its value is whatever
is appropriate for that style.
brightRed = {"color" : "red", "font-size" : "30pt"};
<div [ngStyle]="brightRed">Some Text Here!</div>
27. These directives are responsible for HTML layout.
They typically add, remove, and manipulate the host elements to which they are
attached.
Structural Directives
ngIf Conditionally adds or removes an element from DOM
ngFor Repeats a template for each item in the list
ngSwitch Adds one element from a set of possible elements based on
condition. Used with ngSwitchCase and ngSwitchDefault
28. ngIf Directive
Conditionally adds or removes an element from the DOM.
Adding and removing DOM elements is different from displaying and hiding
element.
It is possible to have if then else structure with true block and false block using
ng-template.
<div *ngIf="condition">Add Div to DOM when condition is true </div>
<div *ngIf="condition; else falseBlock">True Block</div>
<ng-template #falseBlock><div>False Block</div></ng-template>
<div *ngIf="condition; then trueBlock; else falseBlock"></div>
<ng-template #trueBlock><div>True Block</div></ng-template>
<ng-template #falseBlock><div>False Block</div></ng-template>
29. ngFor Directive
Repeats a template for each item in the given list.
NgFor is a repeater directive — a way to present a list of items. You define a block
of HTML that defines how a single item should be displayed.
It provides some exported values that can be assigned to local variables.
index The index of the current item in the list. It is a number
first True if item is first item in the list
last True if item is last item in the list
even True if item has even index
odd True if item has odd index
30. ngFor Directive
<div *ngFor="let topic of topics; let i=index; let first=first;let oddRow=odd">
<h2 *ngIf="first">List Of Topics</h2>
<span [class.red]="oddRow">
{{i + 1}} - {{topic}}
</span>
</div>
31. ngSwitch Directive
It is like the JavaScript switch statement.
It can display one element from among several possible elements, based on a
switch condition.
Angular puts only the selected element into the DOM.
NgSwitch is actually a set of three, cooperating directives: NgSwitch,
NgSwitchCase, and NgSwitchDefault.
32. Template Reference Variable (#var)
A template reference variable is often a reference to a DOM element within a template.
It can also be a reference to an Angular component or directive.
Use the hash symbol (#) to declare a reference variable.
You can refer to a template reference variable anywhere in the template.
The scope of a reference variable is the entire template.
You can use the ref- prefix alternative to #.
33. Pipes
A pipe takes data as input and transforms it to required
output.
Angular provides built-in pipes for many common
requirements.
Pipes are used in template.
Pipes can also take optional parameters to fine tune
output.
To add parameters to a pipe, follow the pipe name with a
colon ( : ) and then the parameter value (such as
currency : 'EUR').
If the pipe accepts multiple parameters, separate the
values with colons (such as slice:1:5).
You can chain pipes together so that output of one pipe
goes to another pipe as input.
34. DatePipe
Formats a date according to locale rules.
date_expression | date [:format]
36. DecimalPipe
minIntegerDigits
Is the minimum number of integer digits to use. Defaults to 1.
minFractionDigits
Is the minimum number of digits after fraction. Defaults to 0.
maxFractionDigits
Is the maximum number of digits after fraction. Defaults to 3.
37. CurrencyPipe
Formats a number
as currency using
locale rules.
currencyCode
Is the currency code, such as USD for the
US dollar and EUR for the euro.
symbolDisplay
Is a boolean indicating whether to use the
39. SlicePipe
Creates a new List or String containing a subset (slice) of the
elements.
start
The starting index of the subset to
return.
end
The ending index of the subset to
return.
40. Custom Pipes
Create a class and decorate it with @Pipe decorator.
The pipe class implements PipeTransform interface's transform
method that accepts an input value followed by optional
parameters and returns the transformed value.
There will be one additional argument to the transform method for
each parameter passed to the pipe.
The @Pipe decorator allows you to define the pipe name that
you'll use within template expressions. It must
be a valid JavaScript identifier.
You must include your pipe in the declarations array of the
AppModule.