With AngularJS, you can include HTML from an external file.
With AngularJS, you can include HTML content using the ng-include directive:
The HTML files you include with the ng-include
directive can also contain AngularJS code:
By default, the ng-include
directive does not allow you to include files from other domains.
To include files from another domain, you can add a whitelist of legal files and/or domains in the config
function of your application:
AngularJS strings are like JavaScript strings: