天天看点

where is application controller bound to application main view

Created by Jerry Wang, last modified on Jan 17, 2015

在如下方法设置断点:

where is application controller bound to application main view

从callstack可以发现trigger point为application view的实例化:

where is application controller bound to application main view

o 即为application controller的instance, 里面的onInit方法可以在Main.controller.js里找到:

where is application controller bound to application main view
where is application controller bound to application main view

注册各种事件处理:

where is application controller bound to application main view

application controller的onInit在这里被注册,之后就能被UI framework 回调:

where is application controller bound to application main view

继续阅读