-
Notifications
You must be signed in to change notification settings - Fork 7
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
95 changed files
with
691 additions
and
345 deletions.
There are no files selected for viewing
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
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,4 +1,5 @@ | ||
<html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Your first Angular app</title> | ||
</head> | ||
|
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,12 @@ | ||
@name HTML content was altered after server-side rendering | ||
@category runtime | ||
@shortDescription HTML content was altered after server-side rendering | ||
|
||
@description | ||
Angular throws this error when it detects that the content generated by server-side rendering (SSR) was altered after the rendering. The process of hydration relies on the content to be untouched after SSR, which also includes whitespaces and comment nodes. Those whitespaces and comment nodes must be retained in the HTML generated by the SSR process. Learn more in the [Hydration guide](guide/hydration#constraints). | ||
|
||
@debugging | ||
|
||
Typically this happens in the following cases: | ||
* Some CDN providers have a built-in feature to remove whitespaces and comment nodes from HTML as an optimization. Please verify if there is such an option in CDN configuration and turn it off. | ||
* If you use custom post-processing of HTML generated by SSR (as a build step), make sure that this process doesn't remove whitespaces and comment nodes. |
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
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
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
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
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,15 @@ | ||
import { ApplicationConfig } from '@angular/core'; | ||
import { routes } from './app.routes'; | ||
import { provideRouter } from '@angular/router'; | ||
import { provideProtractorTestingSupport } from '@angular/platform-browser'; | ||
import { provideAnimations } from '@angular/platform-browser/animations'; | ||
|
||
|
||
export const appConfig: ApplicationConfig = { | ||
providers: [ | ||
// needed for supporting e2e tests | ||
provideProtractorTestingSupport(), | ||
provideRouter(routes), | ||
provideAnimations(), | ||
] | ||
}; |
101 changes: 31 additions & 70 deletions
101
...examples/animations/src/app/app.module.ts → ...examples/animations/src/app/app.routes.ts
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,112 +1,73 @@ | ||
// #docregion route-animation-data | ||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||
import { RouterModule } from '@angular/router'; | ||
import { AppComponent } from './app.component'; | ||
import { OpenCloseComponent } from './open-close.component'; | ||
import { Routes } from '@angular/router'; | ||
import { OpenClosePageComponent } from './open-close-page.component'; | ||
import { OpenCloseChildComponent } from './open-close.component.4'; | ||
import { ToggleAnimationsPageComponent } from './toggle-animations-page.component'; | ||
import { StatusSliderComponent } from './status-slider.component'; | ||
import { StatusSliderPageComponent } from './status-slider-page.component'; | ||
import { ToggleAnimationsPageComponent } from './toggle-animations-page.component'; | ||
import { HeroListPageComponent } from './hero-list-page.component'; | ||
import { HeroListGroupPageComponent } from './hero-list-group-page.component'; | ||
import { HeroListGroupsComponent } from './hero-list-groups.component'; | ||
import { HeroListEnterLeavePageComponent } from './hero-list-enter-leave-page.component'; | ||
import { HeroListEnterLeaveComponent } from './hero-list-enter-leave.component'; | ||
import { HeroListAutoCalcPageComponent } from './hero-list-auto-page.component'; | ||
import { HeroListAutoComponent } from './hero-list-auto.component'; | ||
import { HomeComponent } from './home.component'; | ||
import { AboutComponent } from './about.component'; | ||
import { InsertRemoveComponent } from './insert-remove.component'; | ||
import { QueryingComponent } from './querying.component'; | ||
import { HomeComponent } from './home.component'; | ||
import { AboutComponent } from './about.component'; | ||
|
||
|
||
@NgModule({ | ||
imports: [ | ||
BrowserModule, | ||
BrowserAnimationsModule, | ||
RouterModule.forRoot([ | ||
{ path: '', pathMatch: 'full', redirectTo: '/enter-leave' }, | ||
{ | ||
// #docregion route-animation-data | ||
export const routes: Routes = [ | ||
{ path: '', pathMatch: 'full', redirectTo: '/enter-leave' }, | ||
{ | ||
path: 'open-close', | ||
component: OpenClosePageComponent, | ||
data: { animation: 'openClosePage' } | ||
}, | ||
{ | ||
}, | ||
{ | ||
path: 'status', | ||
component: StatusSliderPageComponent, | ||
data: { animation: 'statusPage' } | ||
}, | ||
{ | ||
}, | ||
{ | ||
path: 'toggle', | ||
component: ToggleAnimationsPageComponent, | ||
data: { animation: 'togglePage' } | ||
}, | ||
{ | ||
}, | ||
{ | ||
path: 'heroes', | ||
component: HeroListPageComponent, | ||
data: { animation: 'filterPage' } | ||
}, | ||
{ | ||
}, | ||
{ | ||
path: 'hero-groups', | ||
component: HeroListGroupPageComponent, | ||
data: { animation: 'heroGroupPage' } | ||
}, | ||
{ | ||
}, | ||
{ | ||
path: 'enter-leave', | ||
component: HeroListEnterLeavePageComponent, | ||
data: { animation: 'enterLeavePage' } | ||
}, | ||
{ | ||
}, | ||
{ | ||
path: 'auto', | ||
component: HeroListAutoCalcPageComponent, | ||
data: { animation: 'autoPage' } | ||
}, | ||
{ | ||
}, | ||
{ | ||
path: 'insert-remove', | ||
component: InsertRemoveComponent, | ||
data: { animation: 'insertRemovePage' } | ||
}, | ||
{ | ||
}, | ||
{ | ||
path: 'querying', | ||
component: QueryingComponent, | ||
data: { animation: 'queryingPage' } | ||
}, | ||
{ | ||
}, | ||
{ | ||
path: 'home', | ||
component: HomeComponent, | ||
data: { animation: 'HomePage' } | ||
}, | ||
{ | ||
}, | ||
{ | ||
path: 'about', | ||
component: AboutComponent, | ||
data: { animation: 'AboutPage' } | ||
}, | ||
]) | ||
], | ||
// #enddocregion route-animation-data | ||
declarations: [ | ||
AppComponent, | ||
StatusSliderComponent, | ||
OpenCloseComponent, | ||
OpenCloseChildComponent, | ||
OpenClosePageComponent, | ||
StatusSliderPageComponent, | ||
ToggleAnimationsPageComponent, | ||
HeroListPageComponent, | ||
HeroListGroupsComponent, | ||
HeroListGroupPageComponent, | ||
HeroListEnterLeavePageComponent, | ||
HeroListEnterLeaveComponent, | ||
HeroListAutoCalcPageComponent, | ||
HeroListAutoComponent, | ||
HomeComponent, | ||
InsertRemoveComponent, | ||
QueryingComponent, | ||
AboutComponent | ||
], | ||
bootstrap: [AppComponent] | ||
}) | ||
export class AppModule { } | ||
}, | ||
]; | ||
// #enddocregion route-animation-data |
5 changes: 4 additions & 1 deletion
5
aio/content/examples/animations/src/app/hero-list-auto-page.component.ts
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
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
5 changes: 4 additions & 1 deletion
5
aio/content/examples/animations/src/app/hero-list-enter-leave-page.component.ts
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
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
5 changes: 4 additions & 1 deletion
5
aio/content/examples/animations/src/app/hero-list-group-page.component.ts
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
Oops, something went wrong.