diff options
| author | Igor Minar | 2011-06-30 11:16:56 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-06-30 11:33:36 -0700 |
| commit | 86ff9dee237672885bd6bc1c902403a448c03354 (patch) | |
| tree | 05f8486de52a6fffaad8500bf2f914d94a363add /src/widgets.js | |
| parent | 6dc22fe57529387b1a66b42193670bf6d6685675 (diff) | |
| download | angular.js-86ff9dee237672885bd6bc1c902403a448c03354.tar.bz2 | |
docs:include: improve docs
Diffstat (limited to 'src/widgets.js')
| -rw-r--r-- | src/widgets.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widgets.js b/src/widgets.js index f5612c6d..0d3e4f5d 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -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. |
