
All the docs related files (docs-app, doc-gen, content, etc) are now to be found inside the `/aio` folder. The related gulp tasks have been moved from the top level gulp file to a new one inside the `/aio` folder. The structure of the `/aio` folder now looks like: ``` /aio/ build/ # gulp tasks content/ #MARKDOWN FILES for devguides, cheatsheet, etc devguides/ cheatsheets/ transforms/ #dgeni packages, templates, etc src/ app/ assets/ content/ #HTML + JSON build artifacts produced by dgeni from /aio/content. #This dir is .gitignored-ed e2e/ #protractor tests for the doc viewer app node_modules/ #dependencies for both the doc viewer builds and the dgeni stuff #This dir is .gitignored-ed gulpfile.js #Tasks for generating docs and building & deploying the doc viewer ``` Closes #14361
38 lines
883 B
TypeScript
38 lines
883 B
TypeScript
// #docregion
|
|
import { Component } from '@angular/core';
|
|
|
|
///////// Using Absolute Paths ///////
|
|
|
|
// #docregion absolute-config
|
|
@Component({
|
|
selector: 'absolute-path',
|
|
templateUrl: 'app/some.component.html',
|
|
styleUrls: ['app/some.component.css']
|
|
})
|
|
// #enddocregion absolute-config
|
|
export class SomeAbsoluteComponent {
|
|
class = 'absolute';
|
|
type = 'Absolute template & style URLs';
|
|
path = 'app/path.component.html';
|
|
}
|
|
|
|
///////// Using Relative Paths ///////
|
|
|
|
// #docregion relative-config
|
|
@Component({
|
|
// #docregion module-id
|
|
moduleId: module.id,
|
|
// #enddocregion module-id
|
|
selector: 'relative-path',
|
|
templateUrl: './some.component.html',
|
|
styleUrls: ['./some.component.css']
|
|
})
|
|
// #enddocregion relative-config
|
|
|
|
export class SomeRelativeComponent {
|
|
class = 'relative';
|
|
type = 'Component-relative template & style URLs';
|
|
path = 'path.component.html';
|
|
|
|
}
|