html5 - external template loading cannot be used in angularjs
天蓬老师
天蓬老师 2017-05-15 17:14:02
0
1
640

When using angularjs, use ng-include to introduce an external template (using the script tag), and then use ng-include again to use the imported template (using the id operation), but there is no response. What is wrong?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
我想大声告诉你
1.ng-include,如果单纯指定地址,必须要加引号
2.ng-include,加载外部html,script标签中的内容不执行,不能加载,如果需要控制器处理需要在主页中注册
3.ng-include,加载外部html中含有style标签样式可以识别
4.ng-inclue,记载外部html中的link标签可以加载
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template