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

Commit b652ef5

Browse files
committed
chore: convert relative templateUrl/styleUrls to have ./
1 parent 2f28b32 commit b652ef5

File tree

99 files changed

+125
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+125
-124
lines changed

public/docs/_examples/animations/ts/app/hero-list-auto.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { Heroes } from './hero.service';
2323
</ul>
2424
`,
2525
// #enddocregion template
26-
styleUrls: ['hero-list.component.css'],
26+
styleUrls: ['./hero-list.component.css'],
2727

2828
/* When the element leaves (transition "in => void" occurs),
2929
* get the element's current computed height and animate

public/docs/_examples/animations/ts/app/hero-list-basic.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { Heroes } from './hero.service';
3434
</ul>
3535
`,
3636
// #enddocregion template
37-
styleUrls: ['hero-list.component.css'],
37+
styleUrls: ['./hero-list.component.css'],
3838
// #enddocregion
3939
/**
4040
* Define two states, "inactive" and "active", and the end

public/docs/_examples/animations/ts/app/hero-list-combined-transitions.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Heroes } from './hero.service';
2727
</ul>
2828
`,
2929
// #enddocregion template
30-
styleUrls: ['hero-list.component.css'],
30+
styleUrls: ['./hero-list.component.css'],
3131
/*
3232
* Define two states, "inactive" and "active", and the end
3333
* styles that apply whenever the element is in those states.

public/docs/_examples/animations/ts/app/hero-list-enter-leave-states.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { Heroes } from './hero.service';
2424
</ul>
2525
`,
2626
// #enddocregion template
27-
styleUrls: ['hero-list.component.css'],
27+
styleUrls: ['./hero-list.component.css'],
2828
/* The elements here have two possible states based
2929
* on the hero state, "active", or "inactive". We animate
3030
* six transitions: Between the two states in both directions,

public/docs/_examples/animations/ts/app/hero-list-enter-leave.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { Heroes } from './hero.service';
2323
</ul>
2424
`,
2525
// #enddocregion template
26-
styleUrls: ['hero-list.component.css'],
26+
styleUrls: ['./hero-list.component.css'],
2727
/* The element here always has the state "in" when it
2828
* is present. We animate two transitions: From void
2929
* to in and from in to void, to achieve an animated

public/docs/_examples/animations/ts/app/hero-list-groups.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { Heroes } from './hero.service';
2222
</li>
2323
</ul>
2424
`,
25-
styleUrls: ['hero-list.component.css'],
25+
styleUrls: ['./hero-list.component.css'],
2626
styles: [`
2727
li {
2828
padding: 0 !important;

public/docs/_examples/animations/ts/app/hero-list-inline-styles.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { Heroes } from './hero.service';
2626
</ul>
2727
`,
2828
// #enddocregion template
29-
styleUrls: ['hero-list.component.css'],
29+
styleUrls: ['./hero-list.component.css'],
3030
/**
3131
* Define two states, "inactive" and "active", and the end
3232
* styles that apply whenever the element is in those states.

public/docs/_examples/animations/ts/app/hero-list-multistep.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Heroes } from './hero.service';
2727
</ul>
2828
`,
2929
// #enddocregion template
30-
styleUrls: ['hero-list.component.css'],
30+
styleUrls: ['./hero-list.component.css'],
3131
/* The element here always has the state "in" when it
3232
* is present. We animate two transitions: From void
3333
* to in and from in to void, to achieve an animated

public/docs/_examples/animations/ts/app/hero-list-timings.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { Heroes } from './hero.service';
2222
</li>
2323
</ul>
2424
`,
25-
styleUrls: ['hero-list.component.css'],
25+
styleUrls: ['./hero-list.component.css'],
2626
/* The element here always has the state "in" when it
2727
* is present. We animate two transitions: From void
2828
* to in and from in to void, to achieve an animated

public/docs/_examples/animations/ts/app/hero-list-twoway.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Heroes } from './hero.service';
2727
</ul>
2828
`,
2929
// #enddocregion template
30-
styleUrls: ['hero-list.component.css'],
30+
styleUrls: ['./hero-list.component.css'],
3131
/*
3232
* Define two states, "inactive" and "active", and the end
3333
* styles that apply whenever the element is in those states.

public/docs/_examples/architecture/ts/app/hero-list.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { HeroService } from './hero.service';
77
@Component({
88
moduleId: module.id,
99
selector: 'hero-list',
10-
templateUrl: 'hero-list.component.html',
10+
templateUrl: './hero-list.component.html',
1111
providers: [ HeroService ]
1212
})
1313
// #enddocregion providers

public/docs/_examples/attribute-directives/ts/app/app.component.1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Component } from '@angular/core';
33
@Component({
44
moduleId: module.id,
55
selector: 'my-app',
6-
templateUrl: 'app.component.1.html'
6+
templateUrl: './app.component.1.html'
77
})
88
// #docregion class
99
export class AppComponent {

public/docs/_examples/attribute-directives/ts/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
44
@Component({
55
moduleId: module.id,
66
selector: 'my-app',
7-
templateUrl: 'app.component.html'
7+
templateUrl: './app.component.html'
88
})
99
// #docregion class
1010
export class AppComponent {

public/docs/_examples/cb-a1-a2-quick-reference/ts/app/app.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { IMovie } from './movie';
66
@Component({
77
moduleId: module.id,
88
selector: 'my-app',
9-
templateUrl: 'app.component.html',
10-
styleUrls: [ 'app.component.css' ],
9+
templateUrl: './app.component.html',
10+
styleUrls: [ './app.component.css' ],
1111
providers: [ MovieService ]
1212
})
1313
export class AppComponent {

public/docs/_examples/cb-a1-a2-quick-reference/ts/app/movie-list.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import { MovieService } from './movie.service';
1010
@Component({
1111
moduleId: module.id,
1212
selector: 'movie-list',
13-
templateUrl: 'movie-list.component.html',
13+
templateUrl: './movie-list.component.html',
1414
// #enddocregion component
1515
// #docregion style-url
16-
styleUrls: [ 'movie-list.component.css' ],
16+
styleUrls: [ './movie-list.component.css' ],
1717
// #enddocregion style-url
1818
})
1919
// #enddocregion component

public/docs/_examples/cb-aot-compiler/ts/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
44
@Component({
55
moduleId: module.id,
66
selector: 'my-app',
7-
templateUrl: 'app.component.html'
7+
templateUrl: './app.component.html'
88
})
99
export class AppComponent {
1010
showHeading = true;

public/docs/_examples/cb-component-communication/ts/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { Component } from '@angular/core';
33
@Component({
44
moduleId: module.id,
55
selector: 'my-app',
6-
templateUrl: 'app.component.html'
6+
templateUrl: './app.component.html'
77
})
88
export class AppComponent { }

public/docs/_examples/cb-component-relative-paths/ts/app/some.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export class SomeAbsoluteComponent {
2424
moduleId: module.id,
2525
// #enddocregion module-id
2626
selector: 'relative-path',
27-
templateUrl: 'some.component.html',
28-
styleUrls: ['some.component.css']
27+
templateUrl: './some.component.html',
28+
styleUrls: ['./some.component.css']
2929
})
3030
// #enddocregion relative-config
3131

public/docs/_examples/cb-dependency-injection/ts/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { UserService } from './user.service';
99
@Component({
1010
moduleId: module.id,
1111
selector: 'my-app',
12-
templateUrl: 'app.component.html',
12+
templateUrl: './app.component.html',
1313
// #docregion providers
1414
providers: [ LoggerService, UserContextService, UserService ]
1515
// #enddocregion providers

public/docs/_examples/cb-dynamic-form/ts/app/dynamic-form-question.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { QuestionBase } from './question-base';
77
@Component({
88
moduleId: module.id,
99
selector: 'df-question',
10-
templateUrl: 'dynamic-form-question.component.html'
10+
templateUrl: './dynamic-form-question.component.html'
1111
})
1212
export class DynamicFormQuestionComponent {
1313
@Input() question: QuestionBase<any>;

public/docs/_examples/cb-dynamic-form/ts/app/dynamic-form.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { QuestionControlService } from './question-control.service';
88
@Component({
99
moduleId: module.id,
1010
selector: 'dynamic-form',
11-
templateUrl: 'dynamic-form.component.html',
11+
templateUrl: './dynamic-form.component.html',
1212
providers: [ QuestionControlService ]
1313
})
1414
export class DynamicFormComponent implements OnInit {

public/docs/_examples/cb-form-validation/ts/app/reactive/hero-form-reactive.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { forbiddenNameValidator } from '../shared/forbidden-name.directive';
1010
@Component({
1111
moduleId: module.id,
1212
selector: 'hero-form-reactive3',
13-
templateUrl: 'hero-form-reactive.component.html'
13+
templateUrl: './hero-form-reactive.component.html'
1414
})
1515
export class HeroFormReactiveComponent implements OnInit {
1616

public/docs/_examples/cb-form-validation/ts/app/template/hero-form-template1.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Hero } from '../shared/hero';
99
@Component({
1010
moduleId: module.id,
1111
selector: 'hero-form-template1',
12-
templateUrl: 'hero-form-template1.component.html'
12+
templateUrl: './hero-form-template1.component.html'
1313
})
1414
// #docregion class
1515
export class HeroFormTemplate1Component {

public/docs/_examples/cb-form-validation/ts/app/template/hero-form-template2.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Hero } from '../shared/hero';
99
@Component({
1010
moduleId: module.id,
1111
selector: 'hero-form-template2',
12-
templateUrl: 'hero-form-template2.component.html'
12+
templateUrl: './hero-form-template2.component.html'
1313
})
1414
export class HeroFormTemplate2Component implements AfterViewChecked {
1515

public/docs/_examples/cb-i18n/ts/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
44
@Component({
55
moduleId: module.id,
66
selector: 'my-app',
7-
templateUrl: 'app.component.html'
7+
templateUrl: './app.component.html'
88
})
99
export class AppComponent {
1010
wolves = 0;

public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/app.component.es6

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Component } from '@angular/core';
33
@Component({
44
moduleId: module.id,
55
selector: 'my-app',
6-
templateUrl: 'app.component.html',
6+
templateUrl: './app.component.html',
77
styles: [
88
// See hero-di-inject-additional.component
99
'hero-host, hero-host-meta { border: 1px dashed black; display: block; padding: 4px;}',

public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/confirm.component.es6

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
44
@Component({
55
moduleId: module.id,
66
selector: 'app-confirm',
7-
templateUrl: 'confirm.component.html'
7+
templateUrl: './confirm.component.html'
88
})
99
export class ConfirmComponent {
1010
@Input() okMsg = '';

public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-title.component.es6

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Attribute, Component, Inject, Optional } from '@angular/core';
55
@Component({
66
moduleId: module.id,
77
selector: 'hero-title',
8-
templateUrl: 'hero-title.component.html'
8+
templateUrl: './hero-title.component.html'
99
})
1010
// #enddocregion templateUrl
1111
export class HeroTitleComponent {

public/docs/_examples/cb-ts-to-js/js-es6/app/app.component.es6

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ AppComponent.annotations = [
1010
new Component({
1111
moduleId: module.id,
1212
selector: 'my-app',
13-
templateUrl: 'app.component.html',
13+
templateUrl: './app.component.html',
1414
styles: [
1515
// See hero-di-inject-additional.component
1616
'hero-host { border: 1px dashed black; display: block; padding: 4px;}',

public/docs/_examples/cb-ts-to-js/js-es6/app/confirm.component.es6

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ConfirmComponent.annotations = [
1818
new Component({
1919
moduleId: module.id,
2020
selector: 'app-confirm',
21-
templateUrl: 'confirm.component.html',
21+
templateUrl: './confirm.component.html',
2222
inputs: [
2323
'okMsg',
2424
'notOkMsg: cancelMsg'

public/docs/_examples/cb-ts-to-js/js-es6/app/hero-title.component.es6

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ HeroTitleComponent.annotations = [
1818
new Component({
1919
moduleId: module.id,
2020
selector: 'hero-title',
21-
templateUrl: 'hero-title.component.html'
21+
templateUrl: './hero-title.component.html'
2222
})
2323
];
2424
// #enddocregion templateUrl

public/docs/_examples/cb-ts-to-js/ts/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Component } from '@angular/core';
33
@Component({
44
moduleId: module.id,
55
selector: 'my-app',
6-
templateUrl: 'app.component.html',
6+
templateUrl: './app.component.html',
77
styles: [
88
// See hero-di-inject-additional.component
99
'hero-host, hero-host-meta { border: 1px dashed black; display: block; padding: 4px;}',

public/docs/_examples/cb-ts-to-js/ts/app/confirm.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
44
@Component({
55
moduleId: module.id,
66
selector: 'app-confirm',
7-
templateUrl: 'confirm.component.html'
7+
templateUrl: './confirm.component.html'
88
})
99
export class ConfirmComponent {
1010
@Input() okMsg = '';

public/docs/_examples/cb-ts-to-js/ts/app/hero-title.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Attribute, Component, Inject, Optional } from '@angular/core';
55
@Component({
66
moduleId: module.id,
77
selector: 'hero-title',
8-
templateUrl: 'hero-title.component.html'
8+
templateUrl: './hero-title.component.html'
99
})
1010
// #enddocregion templateUrl
1111
export class HeroTitleComponent {

public/docs/_examples/cli-quickstart/ts/src/app/cli-quickstart.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { Component } from '@angular/core';
66
@Component({
77
moduleId: module.id,
88
selector: 'cli-quickstart-app',
9-
templateUrl: 'cli-quickstart.component.html',
10-
styleUrls: ['cli-quickstart.component.css']
9+
templateUrl: './cli-quickstart.component.html',
10+
styleUrls: ['./cli-quickstart.component.css']
1111
})
1212
// #enddocregion metadata
1313
// #docregion title, class

public/docs/_examples/component-styles/ts/app/quest-summary.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { Component, ViewEncapsulation } from '@angular/core';
77
moduleId: module.id,
88
selector: 'quest-summary',
99
// #docregion urls
10-
templateUrl: 'quest-summary.component.html',
11-
styleUrls: ['quest-summary.component.css']
10+
templateUrl: './quest-summary.component.html',
11+
styleUrls: ['./quest-summary.component.css']
1212
// #enddocregion urls
1313
})
1414
export class QuestSummaryComponent { }

public/docs/_examples/forms/ts/app/hero-form.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Hero } from './hero';
88
@Component({
99
moduleId: module.id,
1010
selector: 'hero-form',
11-
templateUrl: 'hero-form.component.html'
11+
templateUrl: './hero-form.component.html'
1212
})
1313
export class HeroFormComponent {
1414

public/docs/_examples/homepage-hello-world/ts/app/hello_world.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Component } from '@angular/core';
99
selector: 'hello-world',
1010

1111
// Location of the template for this component
12-
templateUrl: 'hello_world.html'
12+
templateUrl: './hello_world.html'
1313
})
1414
export class HelloWorldComponent {
1515

public/docs/_examples/lifecycle-hooks/ts/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { Component } from '@angular/core';
33
@Component({
44
moduleId: module.id,
55
selector: 'my-app',
6-
templateUrl: 'app.component.html'
6+
templateUrl: './app.component.html'
77
})
88
export class AppComponent { }

public/docs/_examples/lifecycle-hooks/ts/app/do-check.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class DoCheckComponent implements DoCheck {
7777
@Component({
7878
moduleId: module.id,
7979
selector: 'do-check-parent',
80-
templateUrl: 'do-check-parent.component.html',
80+
templateUrl: './do-check-parent.component.html',
8181
styles: ['.parent {background: Lavender}']
8282
})
8383
export class DoCheckParentComponent {

public/docs/_examples/lifecycle-hooks/ts/app/on-changes.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class OnChangesComponent implements OnChanges {
5151
@Component({
5252
moduleId: module.id,
5353
selector: 'on-changes-parent',
54-
templateUrl: 'on-changes-parent.component.html',
54+
templateUrl: './on-changes-parent.component.html',
5555
styles: ['.parent {background: Lavender;}']
5656
})
5757
export class OnChangesParentComponent {

public/docs/_examples/lifecycle-hooks/ts/app/spy.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { LoggerService } from './logger.service';
66
@Component({
77
moduleId: module.id,
88
selector: 'spy-parent',
9-
templateUrl: 'spy.component.html',
9+
templateUrl: './spy.component.html',
1010
styles: [
1111
'.parent {background: khaki;}',
1212
'.heroes {background: LightYellow; padding: 0 8px}'

public/docs/_examples/ngmodule/ts/app/contact/contact.component.3.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { UserService } from '../user.service';
77
@Component({
88
moduleId: module.id,
99
selector: 'app-contact',
10-
templateUrl: 'contact.component.html',
11-
styleUrls: [ 'contact.component.css' ]
10+
templateUrl: './contact.component.html',
11+
styleUrls: [ './contact.component.css' ]
1212
})
1313
export class ContactComponent implements OnInit {
1414
contact: Contact;

0 commit comments

Comments
 (0)