docs(dev guide): cleanup of deprecated Jade mixin (#1322)

Replace uses of `liveExLinks` mixin and then deleted its definition.
This commit is contained in:
Patrice Chalin 2016-05-09 13:13:50 -07:00 committed by Thibault Sottiaux
parent 1c0218bc79
commit f30d71a3cc
5 changed files with 4 additions and 20 deletions

View File

@ -12,12 +12,6 @@ mixin liveExampleLink2(linkText, exampleUrlPartName)
- var liveExampleSourceLinkText = attributes.srcLinkText || 'view source'
| #[+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;

View File

@ -2,6 +2,3 @@ extends ../../../ts/latest/guide/hierarchical-dependency-injection.jade
block includes
include ../_util-fns
block liveExample
+liveExLinks('hierarchical-dependency-injection')

View File

@ -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.

View File

@ -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

View File

@ -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