
This commit updates the docs examples to be compatible with the following Angular-specific tslint rules: - `component-selector` - `directive-selector` - `no-conflicting-lifecycle` - `no-host-metadata-property` - `no-input-rename` - `no-output-native` - `no-output-rename` This is in preparation of updating the docs examples `tslint.json` to match the one generated for new Angular CLI apps in a future commit. PR Close #38143
12 lines
245 B
TypeScript
12 lines
245 B
TypeScript
// tslint:disable: directive-selector
|
|
// #docregion
|
|
import { Directive, ViewContainerRef } from '@angular/core';
|
|
|
|
@Directive({
|
|
selector: '[adHost]',
|
|
})
|
|
export class AdDirective {
|
|
constructor(public viewContainerRef: ViewContainerRef) { }
|
|
}
|
|
|