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' - var liveExampleSourceLinkText = attributes.srcLinkText || 'view source'
| #[+liveExampleLink(linkText, exampleUrlPartName)] | #[+liveExampleLink(linkText, exampleUrlPartName)]
| (#[a(href='https://github.com/angular-examples/#{exampleUrlPartName}') #{liveExampleSourceLinkText}]) | (#[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) { - var adjustExamplePath = function(_path) {
- if(!_path) return _path; - if(!_path) return _path;

View File

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

View File

@ -3,9 +3,6 @@ extends ../../../ts/latest/guide/structural-directives.jade
block includes block includes
include ../_util-fns include ../_util-fns
block liveExample
+liveExLinks('structural-directives')
block unless-intro block unless-intro
:marked :marked
Creating a directive is similar to creating a component. Creating a directive is similar to creating a component.

View File

@ -12,10 +12,8 @@ block includes
interesting and useful results. interesting and useful results.
In this chapter we explore these points and write some code. In this chapter we explore these points and write some code.
p
block liveExample | Try the #[+liveExampleLink2('live example', 'hierarchical-dependency-injection')].
:marked
[Live Example](/resources/live-examples/hierarchical-dependency-injection/ts/plnkr.html).
.l-main-section .l-main-section
:marked :marked

View File

@ -14,10 +14,8 @@ block includes
- [discover the <template> element](#template) - [discover the <template> element](#template)
- [understand the asterisk (\*) in **ngFor*](#asterisk) - [understand the asterisk (\*) in **ngFor*](#asterisk)
- [write our own structural directive](#unless) - [write our own structural directive](#unless)
p
block liveExample | Try the #[+liveExampleLink2('live example', 'structural-directives')].
:marked
[Live example](/resources/live-examples/structural-directives/ts/plnkr.html)
<a id="definition"></a> <a id="definition"></a>
.l-main-section .l-main-section