Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit be53a50

Browse files
petebacondarwinFoxandxss
authored andcommitted
fix(*): fix PUG syntax errors (#3401)
These errors are being missed by the Jade parser but the more stringent Pug parser treats them as errors.
1 parent ea63848 commit be53a50

File tree

7 files changed

+134
-134
lines changed

7 files changed

+134
-134
lines changed

public/docs/ts/latest/cookbook/ngmodule-faq.jade

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ a#q-declarable
7575
:marked
7676
## What is a _declarable_?
7777

78-
Declarables are the class types—components, directives, and pipes—that
78+
Declarables are the class types—components, directives, and pipes—that
7979
you can add to a module's `declarations` list.
8080
They're the _only_ classes that you can add to `declarations`.
8181

@@ -113,7 +113,7 @@ a#q-why-multiple-mentions
113113
* `AppComponent` could be declared in this module but not bootstrapped.
114114
* `AppComponent` could be bootstrapped in this module but declared in a different feature module.
115115
* `HeroComponent` could be imported from another app module (so you can't declare it) and re-exported by this module.
116-
* `HeroComponent` could be exported for inclusion in an external component's template
116+
* `HeroComponent` could be exported for inclusion in an external component's template
117117
as well as dynamically loaded in a pop-up dialog.
118118

119119
.l-hr
@@ -205,7 +205,7 @@ a#q-what-to-export
205205
If you don't export a class, it stays _private_, visible only to other component
206206
declared in this module.
207207

208-
You _can_ export any declarable class—components, directives, and pipes—whether
208+
You _can_ export any declarable class—components, directives, and pipes—whether
209209
it's declared in this module or in an imported module.
210210

211211
You _can_ re-export entire imported modules, which effectively re-exports all of their exported classes.
@@ -378,7 +378,7 @@ a#q-component-scoped-providers
378378
If another module elsewhere in the application also customizes `HttpBackend`
379379
or merely imports the `HttpModule`, it could override this module's `HttpBackend` provider,
380380
losing the special header. The server will reject http requests from this module.
381-
381+
382382
To avoid this problem, import the `HttpModule` only in the `AppModule`, the application _root module_.
383383

384384
If you must guard against this kind of "provider corruption", *don't rely on a launch-time module's `providers`.*
@@ -416,7 +416,7 @@ a#q-root-component-or-module
416416
## Should I add application-wide providers to the root _AppModule_ or the root _AppComponent_?
417417

418418
Register application-wide providers in the root `AppModule`, not in the `AppComponent`.
419-
419+
420420
Lazy-loaded modules and their components can inject `AppModule` services;
421421
they can't inject `AppComponent` services.
422422

@@ -734,7 +734,7 @@ table
734734
th(style="vertical-align: top") Feature Module
735735
th(style="vertical-align: top") Guidelines
736736
tr
737-
td(style="vertical-align: top")<a id="domain-feature-module"></a>Domain
737+
td(style="vertical-align: top") <a id="domain-feature-module"></a>Domain
738738
td
739739
:marked
740740
Domain feature modules deliver a user experience *dedicated to a particular application domain*
@@ -761,7 +761,7 @@ table
761761
For an example, see the [Make _Contact_ a feature module](../guide/ngmodule.html#contact-module-v1)
762762
section of the [NgModules](../guide/ngmodule.html) page, before routing is introduced.
763763
tr
764-
td(style="vertical-align: top")<a id="routed-feature-module"></a>Routed
764+
td(style="vertical-align: top") <a id="routed-feature-module"></a>Routed
765765
td
766766
:marked
767767
_Routed feature modules_ are _domain feature modules_
@@ -789,29 +789,29 @@ table
789789
Don't provide application-wide singleton services in a routed feature module
790790
or in a module that the routed module imports.
791791
tr
792-
td(style="vertical-align: top")<a id="routing-module"></a>Routing
792+
td(style="vertical-align: top") <a id="routing-module"></a>Routing
793793
td
794794
:marked
795795
A [routing module](../guide/router.html#routing-module) *provides routing configuration* for another module.
796796

797797
A routing module separates routing concerns from its companion module.
798-
798+
799799
A routing module typically does the following:
800800
* Defines routes.
801801
* Adds router configuration to the module's `imports`.
802802
* Re-exports `RouterModule`.
803803
* Adds guard and resolver service providers to the module's `providers`.
804-
804+
805805
The name of the routing module should parallel the name of its companion module, using the suffix "Routing".
806806
For example, `FooModule` in `foo.module.ts` has a routing module named `FooRoutingModule`
807807
in `foo-routing.module.ts`
808-
809-
If the companion module is the _root_ `AppModule`,
810-
the `AppRoutingModule` adds router configuration to its `imports` with `RouterModule.forRoot(routes)`.
808+
809+
If the companion module is the _root_ `AppModule`,
810+
the `AppRoutingModule` adds router configuration to its `imports` with `RouterModule.forRoot(routes)`.
811811
All other routing modules are children that import `RouterModule.forChild(routes)`.
812812

813-
A routing module re-exports the `RouterModule` as a convenience
814-
so that components of the companion module have access to
813+
A routing module re-exports the `RouterModule` as a convenience
814+
so that components of the companion module have access to
815815
router directives such as `RouterLink` and `RouterOutlet`.
816816

817817
A routing module *should not have its own `declarations`*.
@@ -827,7 +827,7 @@ table
827827
[Routing & Navigation](../guide/router.html) page.
828828

829829
tr
830-
td(style="vertical-align: top")<a id="service-feature-module"></a>Service
830+
td(style="vertical-align: top") <a id="service-feature-module"></a>Service
831831
td
832832
:marked
833833
Service modules *provide utility services* such as data access and messaging.
@@ -840,7 +840,7 @@ table
840840
Do *not* import service modules in other feature modules.
841841
If you deviate from this guideline, know what you're doing and why.
842842
tr
843-
td(style="vertical-align: top")<a id="widget-feature-module"></a>Widget
843+
td(style="vertical-align: top") <a id="widget-feature-module"></a>Widget
844844
td
845845
:marked
846846
A widget module makes *components, directives, and pipes* available to external modules.
@@ -969,7 +969,7 @@ a#q-template-reference
969969
.l-main-section
970970
:marked
971971
## How does Angular find components, directives, and pipes in a template?<br>What is a <i><b>template reference</b></i>?
972-
972+
973973
The [Angular compiler](#q-angular-compiler) looks inside component templates
974974
for other components, directives, and pipes. When it finds one, that's a "template reference".
975975

public/docs/ts/latest/glossary.jade

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ a#attribute-directives
127127
.l-sub-section
128128
block bootstrap-defn-top
129129
:marked
130-
You launch an Angular application by "bootstrapping" it using the application root Angular module (`AppModule`). Bootstrapping identifies an application's top level "root" [component](#component), which is the first component that is loaded for the application.
130+
You launch an Angular application by "bootstrapping" it using the application root Angular module (`AppModule`). Bootstrapping identifies an application's top level "root" [component](#component), which is the first component that is loaded for the application.
131131
For more information, see the [Setup](!{docsLatest}/guide/setup.html) page.
132132
:marked
133133
You can bootstrap multiple apps in the same `index.html`, each app with its own top-level root.
@@ -181,9 +181,9 @@ a#component
181181
:marked
182182
Applications display data values to a user and respond to user
183183
actions (such as clicks, touches, and keystrokes).
184-
185-
In data binding, you declare the relationship between an HTML widget and data source
186-
and let the framework handle the details.
184+
185+
In data binding, you declare the relationship between an HTML widget and data source
186+
and let the framework handle the details.
187187
Data binding is an alternative to manually pushing application data values into HTML, attaching
188188
event listeners, pulling changed values from the screen, and
189189
updating application data values.
@@ -458,12 +458,12 @@ a#jit
458458
- ES2015 modules, as described in this section.
459459

460460
:marked
461-
A cohesive block of code dedicated to a single purpose.
462-
461+
A cohesive block of code dedicated to a single purpose.
462+
463463
Angular apps are modular.
464464

465465
In general, you assemble an application from many modules, both the ones you write and the ones you acquire from others.
466-
466+
467467
A module *exports* something of value in that code, typically one thing such as a class;
468468
a module that needs that class *imports* it.
469469

@@ -712,7 +712,7 @@ a#structural-directives
712712
The process of transforming code written in one form of JavaScript
713713
(such as TypeScript) into another form of JavaScript (such as [ES5](#es5)).
714714

715-
:marked
715+
:marked
716716
## TypeScript
717717
.l-sub-section
718718
:marked

0 commit comments

Comments
 (0)