2024 - INF 354 Angular 1
2024 - INF 354 Angular 1
Advanced
Programming
Angular 1
Learning Outcome:
Learning Objectives:
❖ Introduction
❖ Features of Angular
❖ Angular Architecture
❖ Data Binding
❖ Practical
ANGULAR 1
Introduction
Angular
1. Module
2. Components
3. Templates
4. Metadata
5. Data binding
6. Directives
7. Services
8. Dependency injection
Architecture
• Interpolation Binding
• Interpolation is a procedure that allows the user to bind a value to
the user interface element. Interpolation binds the data one way,
which means that data moves in one direction from the components
to HTML elements. It uses the “{{ }}" syntax for data binding.
Data Binding
• Property Binding
• Property binding is a one-way data binding mechanism that allows
you to set the properties for HTML elements. It uses the "[ ]" syntax
for data binding.
• Event Binding
• Event binding type is when information flows from the view to the
component when an event is triggered. The event could be a mouse
click or keypress. It uses the “( )" syntax for data binding.
Data Binding
• Prerequisites:
• NodeJS
To confirm installation
• node –version
• ng version
Create New Project
For Bootstrap:
npm install jquery --save
npm install popper.js --save
npm install bootstrap --save
npm install font-awesome --save
The End