-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Component Styles guide for CLI
- Loading branch information
Showing
6 changed files
with
86 additions
and
136 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 |
---|---|---|
|
@@ -4,7 +4,8 @@ | |
"files": [ | ||
"!**/*.d.ts", | ||
"!**/*.js", | ||
"!**/*.native.*" | ||
"!**/*.native.*", | ||
"!**/*.[1].*" | ||
], | ||
"tags": ["CSS"] | ||
} |
3 changes: 3 additions & 0 deletions
3
aio/content/examples/component-styles/src/app/hero-app.component.1.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
h1 { | ||
font-weight: normal; | ||
} |
25 changes: 25 additions & 0 deletions
25
aio/content/examples/component-styles/src/app/hero-app.component.1.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Component, HostBinding } from '@angular/core'; | ||
import { Hero } from './hero'; | ||
|
||
// #docregion | ||
@Component({ | ||
selector: 'app-root', | ||
template: ` | ||
<h1>Tour of Heroes</h1> | ||
<app-hero-main [hero]="hero"></app-hero-main> | ||
`, | ||
styleUrls: ['./hero-app.component.css'] | ||
}) | ||
export class HeroAppComponent { | ||
// #enddocregion | ||
hero = new Hero( | ||
'Human Torch', | ||
['Mister Fantastic', 'Invisible Woman', 'Thing'] | ||
); | ||
|
||
@HostBinding('class') get themeClass() { | ||
return 'theme-light'; | ||
} | ||
// #docregion | ||
} | ||
// #enddocregion |
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.