Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 5f8d0e1

Browse files
committed
[WIP] docs(style-guide): create examples
1 parent 3bc9414 commit 5f8d0e1

File tree

5 files changed

+51
-0
lines changed

5 files changed

+51
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// #docregion
2+
/*
3+
* HeroComponent is in the Tour of Heroes feature
4+
*/
5+
@Component({
6+
selector: 'toh-hero'
7+
})
8+
export class HeroComponent {}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// #docregion
2+
/**
3+
* AVOID THIS PATTERN
4+
*/
5+
6+
/*
7+
* HeroComponent is in the Tour of Heroes feature
8+
*/
9+
@Component({
10+
selector: 'hero'
11+
})
12+
export class HeroComponent {}
13+
14+
/*
15+
* UsersComponent is in an Admin feature
16+
*/
17+
@Component({
18+
selector: 'users'
19+
})
20+
export class UsersComponent {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// #docregion
2+
/*
3+
* UsersComponent is in an Admin feature
4+
*/
5+
@Component({
6+
selector: 'admin-users'
7+
})
8+
export class UsersComponent {}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// #docregion
2+
/**
3+
* AVOID THIS PATTERN
4+
*/
5+
6+
@Directive({
7+
selector: '[validate]'
8+
})
9+
export class ValidateDirective {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* recommended */
2+
3+
@Directive({
4+
selector: '[tohValidate]'
5+
})
6+
export class ValidateDirective {}

0 commit comments

Comments
 (0)