angular.js - How to dynamically load html in angularJS and delegate it to the controller
淡淡烟草味
淡淡烟草味 2017-05-15 16:58:22
0
1
611


This alert('s'); does not appear
How to dynamically load html in this way and hand it over to the controller for control?

淡淡烟草味
淡淡烟草味

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