docs: remove outdated docs (#11875)
This commit is contained in:

committed by
Rado Kirov

parent
52812c08e2
commit
33340dbbd1
@ -25,13 +25,10 @@ import {DebugContext} from './debug_context';
|
||||
* ```typescript
|
||||
* @Component({
|
||||
* selector: 'parent',
|
||||
* template: `
|
||||
* <child [prop]="parentProp"></child>
|
||||
* `,
|
||||
* directives: [forwardRef(() => Child)]
|
||||
* template: '<child [prop]="parentProp"></child>',
|
||||
* })
|
||||
* class Parent {
|
||||
* parentProp = "init";
|
||||
* parentProp = 'init';
|
||||
* }
|
||||
*
|
||||
* @Directive({selector: 'child', inputs: ['prop']})
|
||||
@ -41,7 +38,7 @@ import {DebugContext} from './debug_context';
|
||||
* set prop(v) {
|
||||
* // this updates the parent property, which is disallowed during change detection
|
||||
* // this will result in ExpressionChangedAfterItHasBeenCheckedError
|
||||
* this.parent.parentProp = "updated";
|
||||
* this.parent.parentProp = 'updated';
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
|
Reference in New Issue
Block a user