diff --git a/README.md b/README.md index c685100..0f14471 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,33 @@ - [Configuration](#configuration) - [Components](#components) - [Data Binding](#data-binding) -- [Directives](#angular-directives) +- [Directives](#directives) + - [Structural Directives](#structural-directives) + - [Attribute Directives](#attribute-directives) + - [Custom Directives](#custom-directives) - [Pipes](#pipes) + - [Date Pipe](#date-pipe) + - [Uppercase Pipe](#uppercase-pipe) + - [Lowercase Pipe](#lowercase-pipe) + - [Currency Pipe](#currency-pipe) + - [Percent Pipe](#percent-pipe) + - [Slice Pipe](#slice-pipe) + - [Decimal/number Pipe](#decimalnumber-pipe) - [Decorators](#decorators) + - [Input](#input) + - [Output](#output) + - [HostListener](#hostlistener) + - [ContentChild & ContentChildren](#contentchild--contentchildren) + - [ViewChild & ViewChildren](#viewchild--viewchildren) - [Life Cycle Hooks](#life-cycle-hooks) + - [OnChanges](#onchanges) + - [OnInit](#oninit) + - [DoCheck](#docheck) + - [AfterViewInit](#afterviewinit) + - [AfterViewChecked](#afterviewchecked) + - [AfterContentInit](#aftercontentinit) + - [AfterContentChecked](#aftercontentchecked) + - [OnDestroy](#ondestroy) - [Forms](#forms) - [Http](#http) - [Module](#module) @@ -444,11 +467,11 @@ export class AppComponent { [Back to top⤴️](#contents) -## Angular Directives +## Directives Directives add behaviour to an existing DOM element or an existing component instance. -### Structural DIrectives - +### Structural Directives **ngFor** - @@ -653,7 +676,7 @@ Expression | pipeOperator[:pipeArguments] # pipeArguments: arguments to the Pipe ``` -Date Pipe +### Date Pipe ```html
{{ name | lowercase }}
@@ -735,7 +758,7 @@ export class AppComponent { } ``` -Currency Pipe +### Currency Pipe ```html{{ ['apple', 'banana', 'orange', 'mango'] | slice:1:3 }}
``` -Decimal/number Pipe +### Decimal/number Pipe ```html{{ 123456.78 | number:'3.2-3' }}
@@ -842,7 +865,7 @@ Decimal/number Pipe Decorators are design patterns used to isolate the modification or decoration of a class without modifying the source code. -**Input** - +### Input ```ts import { Component, Input, OnInit } from '@angular/core'; @@ -910,7 +933,7 @@ import { ParentComponent } from './parent/parent.component'; export class AppModule {} ``` -**Output** - +### Output ```ts import { Component, EventEmitter, OnInit, Output } from '@angular/core'; @@ -965,7 +988,7 @@ export class ParentComponent implements OnInit {