mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs:include: improve docs
This commit is contained in:
parent
6dc22fe575
commit
86ff9dee23
1 changed files with 3 additions and 2 deletions
|
|
@ -806,12 +806,13 @@ angularWidget('select', function(element){
|
|||
* @name angular.widget.ng:include
|
||||
*
|
||||
* @description
|
||||
* Include external HTML fragment.
|
||||
* Fetches, compiles and includes an external HTML fragment.
|
||||
*
|
||||
* Keep in mind that Same Origin Policy applies to included resources
|
||||
* (e.g. ng:include won't work for file:// access).
|
||||
*
|
||||
* @param {string} src expression evaluating to URL.
|
||||
* @param {string} src angular expression evaluating to URL. If the source is a string constant,
|
||||
* make sure you wrap it in quotes, e.g. `src="'myPartialTemplate.html'"`.
|
||||
* @param {Scope=} [scope=new_child_scope] optional expression which evaluates to an
|
||||
* instance of angular.scope to set the HTML fragment to.
|
||||
* @param {string=} onload Expression to evaluate when a new partial is loaded.
|
||||
|
|
|
|||
Loading…
Reference in a new issue