diff --git a/public/_includes/_util-fns.jade b/public/_includes/_util-fns.jade index 5b583d4720..19b17fe945 100644 --- a/public/_includes/_util-fns.jade +++ b/public/_includes/_util-fns.jade @@ -43,6 +43,7 @@ - var _appModuleTsVsAppCompTs = 'app/app.module.ts' - var _appModuleTsVsMainTs = 'app/app.module.ts' - var _bootstrapModule = 'bootstrapModule' +- var _declsVsDirectives = 'declarations' - var _moduleVsComp = 'module' - var _moduleVsRootComp = 'module' - var _platformBrowserDynamicVsBootStrap = 'platformBrowserDynamic' diff --git a/public/docs/dart/latest/_util-fns.jade b/public/docs/dart/latest/_util-fns.jade index 741d5b0c99..76cd1fabf4 100644 --- a/public/docs/dart/latest/_util-fns.jade +++ b/public/docs/dart/latest/_util-fns.jade @@ -25,6 +25,7 @@ include ../../../_includes/_util-fns - var _appModuleTsVsAppCompTs = 'app/app_component.dart' - var _appModuleTsVsMainTs = 'web/main.dart' - var _bootstrapModule = 'bootstrap' +- var _declsVsDirectives = 'directives' - var _moduleVsComp = 'component' - var _moduleVsRootComp = 'root component' - var _platformBrowserDynamicVsBootStrap = 'bootstrap' diff --git a/public/docs/dart/latest/tutorial/toh-pt5.jade b/public/docs/dart/latest/tutorial/toh-pt5.jade index 9ce3e7ed7b..8ba9e8e319 100644 --- a/public/docs/dart/latest/tutorial/toh-pt5.jade +++ b/public/docs/dart/latest/tutorial/toh-pt5.jade @@ -3,7 +3,6 @@ extends ../../../ts/_cache/tutorial/toh-pt5 block includes include ../_util-fns - var _appRoutingTsVsAppComp = 'AppComponent' - - var _declsVsDirectives = 'directives' - var _RoutesVsAtRouteConfig = '@RouteConfig' - var _RouterModuleVsRouterDirectives = 'ROUTER_DIRECTIVES' - var _redirectTo = 'useAsDefault' diff --git a/public/docs/ts/_cache/guide/structural-directives.jade b/public/docs/ts/_cache/guide/structural-directives.jade index cd832d83d1..773fa80c4e 100644 --- a/public/docs/ts/_cache/guide/structural-directives.jade +++ b/public/docs/ts/_cache/guide/structural-directives.jade @@ -284,7 +284,7 @@ block unless-intro +makeExample('structural-directives/ts/app/unless.directive.ts', null, 'unless.directive.ts') :marked - Now we add it to the `directives`array of the host component and try it. + Now we add it to the `!{_declsVsDirectives}` !{_array} of the !{_AppModuleVsAppComp} and try it. First we add some test HTML to the template: +makeExample('structural-directives/ts/app/structural-directives.component.html', 'myUnless')(format=".") diff --git a/public/docs/ts/latest/guide/structural-directives.jade b/public/docs/ts/latest/guide/structural-directives.jade index 601367811b..773fa80c4e 100644 --- a/public/docs/ts/latest/guide/structural-directives.jade +++ b/public/docs/ts/latest/guide/structural-directives.jade @@ -284,7 +284,7 @@ block unless-intro +makeExample('structural-directives/ts/app/unless.directive.ts', null, 'unless.directive.ts') :marked - Now we add it to the `declarations` array of the AppModule and try it. + Now we add it to the `!{_declsVsDirectives}` !{_array} of the !{_AppModuleVsAppComp} and try it. First we add some test HTML to the template: +makeExample('structural-directives/ts/app/structural-directives.component.html', 'myUnless')(format=".") diff --git a/public/docs/ts/latest/tutorial/toh-pt5.jade b/public/docs/ts/latest/tutorial/toh-pt5.jade index 584ec4b37b..99d6e993bb 100644 --- a/public/docs/ts/latest/tutorial/toh-pt5.jade +++ b/public/docs/ts/latest/tutorial/toh-pt5.jade @@ -3,7 +3,6 @@ block includes include ../_util-fns - var _appRoutingTsVsAppComp = 'app.module.ts' - - var _declsVsDirectives = 'declarations' - var _RoutesVsAtRouteConfig = 'Routes' - var _RouterModuleVsRouterDirectives = 'RouterModule' - var _redirectTo = 'redirectTo'