chore: remove deprecated liveExample mixins (#2670)

`+liveExample` mixins were replaced by `<live-example>` directives a
while ago. This cleanup fixes link issues to the plunker under ng2.io.
This commit is contained in:
Patrice Chalin 2016-10-25 12:26:13 -07:00 committed by Filipe Silva
parent b58e51a038
commit b1917b800f
4 changed files with 2 additions and 28 deletions

View File

@ -29,20 +29,6 @@ include ../../../_includes/_util-fns
- var _moduleVsRootComp = 'root component' - var _moduleVsRootComp = 'root component'
- var _platformBrowserDynamicVsBootStrap = 'bootstrap' - var _platformBrowserDynamicVsBootStrap = 'bootstrap'
//- Deprecated
mixin liveExampleLink(linkText, exampleUrlPartName)
- var text = linkText || 'live example';
- var ex = exampleUrlPartName || getExampleName();
- var href = 'http://angular-examples.github.io/' + ex;
a(href='#{href}' target="_blank")= text
//- Deprecated
mixin liveExampleLink2(linkText, exampleUrlPartName)
- var srcText = attributes.srcText || 'view source';
- var ex = exampleUrlPartName || attributes.example || getExampleName();
- var href = 'http://github.com/angular-examples/' + ex;
span #[+liveExampleLink(linkText, ex)] (#[a(href='#{href}' target="_blank") #{srcText}])
- var adjustTsExamplePathForDart = function(_path) { - var adjustTsExamplePathForDart = function(_path) {
- if(!_path) return _path; - if(!_path) return _path;
- var path = _path.trim(); - var path = _path.trim();

View File

@ -41,7 +41,7 @@ figure
Learn these, and we're on our way. Learn these, and we're on our way.
.l-sub-section .l-sub-section
p The code referenced in this chapter is available as a #[+liveExampleLink2()]. p The code referenced in this chapter is available as a <live-example></live-example>.
.l-main-section .l-main-section
:marked :marked

View File

@ -3,15 +3,3 @@ include ../../../_includes/_util-fns
//- See the _util-fns file included above for a description of the use of these variables. //- See the _util-fns file included above for a description of the use of these variables.
- var _docsFor = 'ts'; - var _docsFor = 'ts';
//- Other values match the defaults. //- Other values match the defaults.
//- Deprecated
mixin liveExampleLink(linkText, exampleUrlPartName)
- var text = linkText || 'live example';
- var ex = exampleUrlPartName || getExampleName();
- var href = '/resources/live-examples/' + ex + '/ts/plnkr.html';
a(href='#{href}' target="_blank")= text
//- Deprecated
mixin liveExampleLink2(linkText, exampleUrlPartName)
//- In Dart this gives 2 links: to the demo and to the source.
+liveExampleLink(linkText, exampleUrlPartName)

View File

@ -41,7 +41,7 @@ figure
Learn these building blocks, and you're on your way. Learn these building blocks, and you're on your way.
.l-sub-section .l-sub-section
p The code referenced on this page is available as a #[+liveExampleLink2()]. p The code referenced on this page is available as a <live-example></live-example>.
.l-main-section .l-main-section
:marked :marked