docs(dev guide): cleanup of deprecated Jade mixin (#1322)
Replace uses of `liveExLinks` mixin and then deleted its definition.
This commit is contained in:
parent
1c0218bc79
commit
f30d71a3cc
|
@ -13,12 +13,6 @@ mixin liveExampleLink2(linkText, exampleUrlPartName)
|
|||
| #[+liveExampleLink(linkText, exampleUrlPartName)]
|
||||
| (#[a(href='https://github.com/angular-examples/#{exampleUrlPartName}') #{liveExampleSourceLinkText}])
|
||||
|
||||
//- Deprecated
|
||||
mixin liveExLinks(exampleUrlPartName)
|
||||
p.
|
||||
#[+liveExampleLink('Run the live example', exampleUrlPartName)] |
|
||||
#[a(href='https://github.com/angular-examples/#{exampleUrlPartName}') View its source code]
|
||||
|
||||
- var adjustExamplePath = function(_path) {
|
||||
- if(!_path) return _path;
|
||||
- var path = _path.trim();
|
||||
|
|
|
@ -2,6 +2,3 @@ extends ../../../ts/latest/guide/hierarchical-dependency-injection.jade
|
|||
|
||||
block includes
|
||||
include ../_util-fns
|
||||
|
||||
block liveExample
|
||||
+liveExLinks('hierarchical-dependency-injection')
|
||||
|
|
|
@ -3,9 +3,6 @@ extends ../../../ts/latest/guide/structural-directives.jade
|
|||
block includes
|
||||
include ../_util-fns
|
||||
|
||||
block liveExample
|
||||
+liveExLinks('structural-directives')
|
||||
|
||||
block unless-intro
|
||||
:marked
|
||||
Creating a directive is similar to creating a component.
|
||||
|
|
|
@ -12,10 +12,8 @@ block includes
|
|||
interesting and useful results.
|
||||
|
||||
In this chapter we explore these points and write some code.
|
||||
|
||||
block liveExample
|
||||
:marked
|
||||
[Live Example](/resources/live-examples/hierarchical-dependency-injection/ts/plnkr.html).
|
||||
p
|
||||
| Try the #[+liveExampleLink2('live example', 'hierarchical-dependency-injection')].
|
||||
|
||||
.l-main-section
|
||||
:marked
|
||||
|
|
|
@ -14,10 +14,8 @@ block includes
|
|||
- [discover the <template> element](#template)
|
||||
- [understand the asterisk (\*) in **ngFor*](#asterisk)
|
||||
- [write our own structural directive](#unless)
|
||||
|
||||
block liveExample
|
||||
:marked
|
||||
[Live example](/resources/live-examples/structural-directives/ts/plnkr.html)
|
||||
p
|
||||
| Try the #[+liveExampleLink2('live example', 'structural-directives')].
|
||||
|
||||
<a id="definition"></a>
|
||||
.l-main-section
|
||||
|
|
Loading…
Reference in New Issue