Skip to content

Commit 86ff9de

Browse files
committed
docs:include: improve docs
1 parent 6dc22fe commit 86ff9de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/widgets.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,12 +806,13 @@ angularWidget('select', function(element){
806806
* @name angular.widget.ng:include
807807
*
808808
* @description
809-
* Include external HTML fragment.
809+
* Fetches, compiles and includes an external HTML fragment.
810810
*
811811
* Keep in mind that Same Origin Policy applies to included resources
812812
* (e.g. ng:include won't work for file:// access).
813813
*
814-
* @param {string} src expression evaluating to URL.
814+
* @param {string} src angular expression evaluating to URL. If the source is a string constant,
815+
* make sure you wrap it in quotes, e.g. `src="'myPartialTemplate.html'"`.
815816
* @param {Scope=} [scope=new_child_scope] optional expression which evaluates to an
816817
* instance of angular.scope to set the HTML fragment to.
817818
* @param {string=} onload Expression to evaluate when a new partial is loaded.

0 commit comments

Comments
 (0)