docs(aio): rename cb- files and a few others
This commit is contained in:

committed by
Pete Bacon Darwin

parent
c3fa8803d3
commit
93516ea8a1
@ -0,0 +1,2 @@
|
||||
<!-- #docregion -->
|
||||
<div tohHighlight>Bombasta</div>
|
@ -0,0 +1,7 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
templateUrl: './app.component.html'
|
||||
})
|
||||
export class AppComponent { }
|
17
aio/content/examples/styleguide/src/06-01/app/app.module.ts
Normal file
17
aio/content/examples/styleguide/src/06-01/app/app.module.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
import { AppComponent } from './app.component';
|
||||
import { HighlightDirective } from './shared';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([{ path: '06-01', component: AppComponent }])
|
||||
],
|
||||
declarations: [
|
||||
AppComponent,
|
||||
HighlightDirective
|
||||
],
|
||||
exports: [ AppComponent ]
|
||||
})
|
||||
export class AppModule {}
|
2
aio/content/examples/styleguide/src/06-01/app/index.ts
Normal file
2
aio/content/examples/styleguide/src/06-01/app/index.ts
Normal file
@ -0,0 +1,2 @@
|
||||
export * from './shared';
|
||||
export * from './app.component';
|
@ -0,0 +1,13 @@
|
||||
// #docregion
|
||||
import { Directive, HostListener } from '@angular/core';
|
||||
|
||||
// #docregion example
|
||||
@Directive({
|
||||
selector: '[tohHighlight]'
|
||||
})
|
||||
export class HighlightDirective {
|
||||
@HostListener('mouseover') onMouseEnter() {
|
||||
// do highlight work
|
||||
}
|
||||
}
|
||||
// #enddocregion example
|
@ -0,0 +1 @@
|
||||
export * from './highlight.directive';
|
Reference in New Issue
Block a user