This repository has been archived by the owner on May 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
Angular Dia 03 - Exercícios/SinglePage/src/app/footer/footer.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
footer { | ||
min-height: var(--footer-min-height); | ||
padding: 6rem 0; | ||
} | ||
|
||
.container { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Lifecycle Hooks -> são chamados em determinados momentos da vida do componente. | ||
|
||
|
||
ngOnChanges() | ||
|
||
Roda na criação do componente e a cada alteração de estado do mesmo; | ||
|
||
|
||
ngOnInit() | ||
|
||
Executado uma vez quando o componente inicializa; | ||
|
||
|
||
ngDoCheck() | ||
|
||
Quando o componente é checado por mudanças; | ||
|
||
|
||
ngAfterContentInit() | ||
|
||
Chamado uma vez, após o ngDoCheck() é chamado; | ||
|
||
|
||
ngAfterContentChecked() | ||
|
||
Depois que o ngDoCheck() e do ngAfterContentInit(); | ||
|
||
|
||
ngAfterViewInit() | ||
|
||
Chamado apenas uma vez após ngAfterContentChecked(); | ||
|
||
|
||
ngAfterViewChecked() | ||
|
||
Chamado na inicialização e a cada vez que o angular checa as visualizações do | ||
do componente e seus filhos por alteração; | ||
|
||
|
||
noOnDestroy() | ||
|
||
É chamado antes do componente ser removido do DOM; |