This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", | |
"schematics": { | |
"tree-debug": { | |
"description": "A schematic to demonstrate how to debug and view [Tree] details..", | |
"factory": "./tree-debug" | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
schematics | |
schematics [CollectionName:]SchematicName [options, ...] | |
By default, if the collection name is not specified, use the internal collection provided | |
by the Schematics CLI. | |
Options: | |
--debug Debug mode. This is true by default if the collection is a relative | |
path (in that case, turn off with --debug=false). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch Program", | |
"program": "${workspaceFolder}/node_modules/@angular-devkit/schematics-cli/bin/schematics.js", | |
"args": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"libOne": { | |
"root": "projects/buildmotion/lib-one", | |
"sourceRoot": "projects/buildmotion/lib-one/src", | |
"projectType": "library", | |
"prefix": "lib", | |
"architect": { | |
"build": { | |
"builder": "@angular-devkit/build-ng-packagr:build", | |
"options": { | |
"tsConfig": "projects/buildmotion/lib-one/tsconfig.lib.json", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"projectType": { | |
"type": "string", | |
"description": "Project type.", | |
"enum": [ | |
"application", | |
"library" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class LibTwoService { | |
serviceName = 'LibTwoService'; | |
constructor() { } | |
SayHello(message: string): string { | |
return `${message} from ${this.serviceName}`; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { LibTwoService } from '../../../lib-two/src/public_api'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class LibOneService { | |
constructor( | |
private serviceTwo: LibTwoService | |
) { } | |
SayHello(message: string): string { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "Launch Chrome against localhost", | |
"url": "http://localhost:4200", | |
"webRoot": "${workspaceFolder}" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class LibOneService { | |
constructor() { } | |
SayHello(message: string): string { | |
return `${message}`; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { LibOneService } from 'projects/lib-one/src/public_api'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
title = 'app'; | |
constructor( |