angular.js - angularJS动态加载html如何委托给控制器
淡淡烟草味
淡淡烟草味 2017-05-15 16:58:22
0
1
575


这个alert('s');不出现
如何通过这种动态加载html并且交给控制器去控制呢?

淡淡烟草味
淡淡烟草味

reply all(1)
大家讲道理

1. Will this code report an error?
2. Why do you need to start angular in the instruction, and your instruction does not specify restrict? 3. To dynamically load HTML, you need to determine that the HTML needs to be compiled before it can be bound to Angular. Take a look at $compile and $sec

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template