1. Problem background
Given an array object, which contains the id of p; loop to generate p elements and assign values to the id
2. Implementation source code
3. Implementation result
The above is the content of the ID of p dynamically generated by AngularJS. For more related content, please pay attention to the PHP Chinese website (m.sbmmt.com)!
Related articles:
AngularJS implements the method of dynamic compilation and adding to dom
AngularJs dynamic loading of modules and dependencies
AngularJS implements the method of binding events to dynamically generated elements