Include syntax in AngularJS
HTML does not support embedding HTML web pages in HTML pages. To achieve this function, the following methods can be used:
HTML does not support embedding HTML web pages in HTML pages. To achieve this function, the following methods can be used:
Using Ajax - Create a server call to get the corresponding HTML page and set it in the innerHTML element of the HTML control.
Using Server Side Includes - JSP, PHP and other web server technologies can include HTML pages in a dynamic web page.
With AngularJS, we can embed the HTML page using the ng-include directive.
ng-app = "" ng-controller = "sinhvienController" >ng-include = "'main.html'" >ng-include="'tenMonHoc.html'">For example:
cuphapInclude.html
Include Cu Phap in AngularJSMORE LIKE THIS
- How to Check PHP Version
- How to Create and Call PHP Functions
- How to build a simple PHP website
- Install Cherokee with PHP5 and MySQL supported in Fedora 14
- These programming languages for the best mobile application development
- 16 programming languages will change your luck
- How to create a database in MySQL
- Why Web Designer should learn Ruby on Rails?
- Beginners of computer programming need to focus on what?
- PHP functions