mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-27 23:14:00 +00:00
docs(guide/directives): update obsolete doc reference
Replace an obsolete reference to a nonexistent "Creating Widgets" section with a real link to "Creating Components".
This commit is contained in:
parent
ac899d0da5
commit
6a612df7de
1 changed files with 3 additions and 2 deletions
|
|
@ -378,8 +378,8 @@ compiler}. The attributes are:
|
||||||
* `M` - Comment: `<!-- directive: my-directive exp -->`
|
* `M` - Comment: `<!-- directive: my-directive exp -->`
|
||||||
|
|
||||||
* `template` - replace the current element with the contents of the HTML. The replacement process
|
* `template` - replace the current element with the contents of the HTML. The replacement process
|
||||||
migrates all of the attributes / classes from the old element to the new one. See Creating
|
migrates all of the attributes / classes from the old element to the new one. See the
|
||||||
Widgets section below for more information.
|
{@link guide/directive#Components Creating Components} section below for more information.
|
||||||
|
|
||||||
* `templateUrl` - Same as `template` but the template is loaded from the specified URL. Because
|
* `templateUrl` - Same as `template` but the template is loaded from the specified URL. Because
|
||||||
the template loading is asynchronous the compilation/linking is suspended until the template
|
the template loading is asynchronous the compilation/linking is suspended until the template
|
||||||
|
|
@ -603,6 +603,7 @@ restrict: 'E',
|
||||||
replace: true
|
replace: true
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
<a name="Components"></a>
|
||||||
# Creating Components
|
# Creating Components
|
||||||
|
|
||||||
It is often desirable to replace a single directive with a more complex DOM structure. This
|
It is often desirable to replace a single directive with a more complex DOM structure. This
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue