Comments (2)
你说的不太对,window.angular 不是绝对能取到的。
为什么这么定义,是因为 javascript 的模块化分为 amd, cmd 等模式。
在 amd 模式下,默认使用 'angular' 作为别名,所以必须定义,而且在amd模式下,window.angular 是默认不输出的。
大部分的 js 模块或者 angular 插件都有类似的代码。
from angular-async-loader.
原来是这样,今天在合并js的时候,
或许是文件之间的依赖关系没有写好,导致没有找到angular.所以才来问这个问题,
哈哈听你这么一说,以前倒是没有注意这个问题.
受教了啊...
from angular-async-loader.
Related Issues (11)
- error at "asyncLoader.configure(app);" HOT 3
- 报错:app.provider is not a function
- 该组件搭配使用RequireJS和单独使用RequireJS有什么区别 HOT 2
- 请问一下示例中 ./app-routes 代表什么? 我demo中没找到 HOT 1
- 如何实现异步加载angular模块的? HOT 2
- 增加对webpack的支持? HOT 1
- 有没有办法,按需加载module呢? HOT 3
- 发现你代码中有一段代码可以注册第三方module HOT 14
- 你好,请问怎么不通过使用路由,来异步加载HTML及JS,并使它成功编译成ANGULAR局部应用? HOT 11
- 嵌套views后不能动态加载controler HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-async-loader.