美文网首页
angular执行顺序

angular执行顺序

作者: 苦苦修行 | 来源:发表于2019-03-21 17:56 被阅读0次

组件层次结构:老祖宗→祖宗→parent→child
老祖宗就是我们常见的AppComponent
构造函数中好像还不能访问输入属性

APP开始初始化

老祖宗 constructor
祖宗 constructor
老祖宗 ngOnInit
老祖宗 ngDoCheck
老祖宗 ngAfterContentInit
老祖宗 ngAfterContentChecked
祖宗 ngOnInit
祖宗 ngDoCheck
祖宗 ngAfterContentInit
祖宗 ngAfterContentChecked
祖宗 ngAfterViewInit
祖宗 ngAfterViewChecked
老祖宗 ngAfterViewInit
老祖宗 ngAfterViewChecked

在祖宗页面点击button创建parent

老祖宗 ngDoCheck
老祖宗 ngAfterContentChecked
祖宗 ngDoCheck
祖宗 ngAfterContentChecked
parent constructor
child constructor
parent ngOnChanges
parent ngOnInit
parent ngDoCheck
parent ngAfterContentInit
parent ngAfterContentChecked
child ngOnInit
child ngDoCheck
child ngAfterContentInit
child ngAfterContentChecked
child ngAfterViewInit
child ngAfterViewChecked
parent ngAfterViewInit
parent ngAfterViewChecked
祖宗 ngAfterViewChecked
老祖宗 ngAfterViewChecked

相关文章

  • angular执行顺序

    组件层次结构:老祖宗→祖宗→parent→child老祖宗就是我们常见的AppComponent构造函数中好像还不...

  • angular6.x--生命周期

    按照生命周期执行的先后顺序,Angular生命周期接口如下所示 生命周期顺序简写在Angular通过构造函数创建组...

  • Angular生命周期

    Angular生命周期 初始化组件生命周期执行顺序 DOM事件setTimeout,setInterval,aja...

  • 2018-08-30

    Angular4加载顺序 今天遇到了一个比较关于angular4加载组件顺序的坑,当我在app.component...

  • hive sql执行顺序

    mysq和hive的sql执行顺序对比 msyql语句执行顺序代码写的顺序: 代码的执行顺序: hive 语句执行...

  • Mysql进阶知识笔记

    一、SQL执行顺序以及常见SQL的join查询 sql执行顺序: 手写 机读顺序 sql机器执行顺序sql机器执行...

  • AngularJS1.*指令体系

    知识点: 1.指令包含的概念2.指令的执行顺序3.指令中的scope4.指令的长相 解释: 指令作为angular...

  • 执行顺序

  • Angular 修改build后的静态资源目录路径

    如果你通过angular-cli创建了一个angular项目,比如名称为angular-quick-start执行...

  • React专题9: 生命周期函数

    初始化和页面刷新 执行顺序 state变化 执行顺序 props变化 执行顺序 shouldComponentUp...

网友评论

      本文标题:angular执行顺序

      本文链接:https://www.haomeiwen.com/subject/pmbcvqtx.html