diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/after_content_parent.dart b/public/docs/_examples/lifecycle-hooks/dart/lib/after_content_parent.dart new file mode 100644 index 0000000000..ceffec0936 --- /dev/null +++ b/public/docs/_examples/lifecycle-hooks/dart/lib/after_content_parent.dart @@ -0,0 +1,94 @@ +// #docregion +import 'package:angular2/angular2.dart'; +import 'logger_service.dart'; +import 'child_component.dart'; + +@Component( + selector: 'after-content', + template: ''' +
{{hero.name}} can {{power}}
+ +Now you see my hero, {{name}}
', + styles: const ['p {background: LightYellow; padding: 8px}']) +class PeekABooComponent + implements + OnChanges, + OnInit, + AfterContentInit, + AfterContentChecked, + AfterViewInit, + AfterViewChecked, + OnDestroy { + @Input() String name; + + int _afterContentCheckedCounter = 1; + int _afterViewCheckedCounter = 1; + int _id = nextId++; + LoggerService _logger; + int _onChangesCounter = 1; + String _verb = 'initialized'; + + PeekABooComponent(this._logger); + + // Only called if there is an @input variable set by parent. + ngOnChanges(Map