- modules 创建一个modules 模块容器
- Use 将模块注入到模块容器中
- initModules 初始化模块容器中的模块 通过install初始化模块将控制器传入
- options 每一个依赖通过自己的modules值 配置选项 <new App<{calc:{model:'histroy'}}>>
- install 来获取 控制器的实例
- 实例化自己的类,并将实例绑定在控制器上 <app.calc = new Calc(app.options.calc)>
- 通过控制器来初始化 组件实例<app.calc.init()>
Detailed changes for each release are documented in the release notes.
npm run start