Рет қаралды 24
==================
Angular Building Blocks
==================
1 Component
2 Template
3 Service
4 Meta data
5 module
6 Pipes
7 Data Binding
8 Directives
9 Dependancy injection
============================
Component
=========
= angular app is collection of component. in we will write logic to send to template and captuare data from template
Components are typescript class
Template
======
= Template is view where we will write our presentation logic. in angular application template is a html file. every component contain its own template
Service
=====
= service means it contain re-usable business logic. service class will inject into component using DI
Meta data
========
metadata nothing but data about data. its provide information of component and template mapping
Module
======
module is a collection of components and directives, and pipes
Pipe
===
= pipe are used to transform the data before deplay
exp:
inr to usd
lowerCase to upperCase
Data Binding
==========
= data binding is a process of binding data between component property and view element in template file
Directives
=========
directives are used to manipulate DOM element in template
Dependancy Injection
=================
DI is the process of injecting dependant object into target object. in angular app services injected into component Using DI
================================================