- Never have two inputs in your API for the same metric.
This file contains 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 { Rule, SchematicContext, Tree, chain, externalSchematic } from '@angular-devkit/schematics'; | |
const licenseText = ` | |
/** | |
* @license | |
* Copyright Google Inc. All Rights Reserved. | |
* | |
* Use of this source code is governed by an MIT-style license that can be | |
* found in the LICENSE file at https://angular.io/license | |
*/ |
This file contains 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 { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; | |
// You don't have to export the function as default. You can also have more than one rule factory | |
// per file. | |
export function myComponent(options: any): Rule { | |
return (tree: Tree, _context: SchematicContext) => { | |
tree.create(options.name || 'hello', 'world'); | |
return tree; | |
}; |
This file contains 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 { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; | |
// You don't have to export the function as default. You can also have more than one rule factory | |
// per file. | |
export function myComponent(options: any): Rule { | |
return (tree: Tree, _context: SchematicContext) => { | |
return tree; | |
}; | |
} |
This file contains 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
Could not start watchman; falling back to NodeWatcher for file system events. | |
Visit http://ember-cli.com/user-guide/#watchman for more info. | |
6493ms building modules | |
10ms sealing | |
0ms optimizing | |
0ms basic module optimization | |
14ms module optimization | |
0ms advanced module optimization | |
6ms basic chunk optimization | |
0ms chunk optimization |
This file contains 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
<div class="md-tab-header" role="tablist" | |
(keydown.arrowRight)="focusNextTab()" | |
(keydown.arrowLeft)="focusPreviousTab()" | |
(keydown.enter)="selectedIndex = focusIndex"> | |
<div class="md-tab-label" role="tab" md-tab-label-wrapper | |
*ngFor="let tab of _tabs; let i = index" | |
[id]="_getTabLabelId(i)" | |
[tabIndex]="selectedIndex == i ? 0 : -1" | |
[attr.aria-controls]="_getTabContentId(i)" | |
[attr.aria-selected]="selectedIndex == i" |