Notes On Angular
Notes On Angular
bmm
Table of Contents
1. Objective for learning angular
2. What is Angular
3. About
3.1. Overview
3.2. Modules
3.3. Components
3.4. Templates, directives, and data binding
3.5. Services and dependency injection
3.6. Summary
2. What is Angular
Engineers and craftsmen often have a set of higher-level tasks that appear through out their practice.
These tasks form a pattern that can be captured and performed by a set of tools. It is for this reason
that craftsmen often have their toolboxes which contain all the tools they need for their art.
Angular is a suit of tools for developing modern web applications. Angular is both a set of tools and
an automaton for rendering ideas as solutions. It can be seen as a toolbox which is itself a virtual
machine. Angular has a native language called Typescript, which is used for developing applications
and for utilizing ready-made components.
The angular run time brings html to live and enables developers to develop modern web
applications.
3. About
3.1. Overview
Angular is a collection ready-made code and conventions to enable efficient development of
applications.
• An angular app is made of components called modules.
• Components use services from other components and may supply their own services to
others
1
• Components and services are classes with meta data and decorators to direct angular or to
convey information
3.2. Modules
Declares and provides compilation context. A module 44 a group of components all working
towards a common goal. It's like a namespace. Examples from the std are:
1. router
2. forms
3. http etc,.
3.3. Components
Defines a class that contains application data and logic and is associated with an HTML template
that defines a view to be displayed at endpoint
@Component is the decorator
3.6. Summary
• Components and templates define angular views.
• Dependency Injector provides services to a component…