You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 10, build 14393
Versions. Please run ng --version. If there's nothing outputted, please run
in a Terminal: node --version and paste the result here:
angular-cli: 1.0.0-beta.11-webpack.2
node: 6.2.2
os: win32 x64
Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc. ng g directive highlight
The log given by the failure. Normally this include a stack trace and some
more information.
n/a
Mention any other details that might be useful.
The non-issue is with the generated directive class. In the above example, here's what will be generated (highlight.directive.ts) -
import {Directive} from '@angular/core';
@Directive({
selector: '[highlight]'
})
export class Highlight {
constructor() { }
}
Shouldn't the class decoration instead be -
export class HighlightDirective {
All the provided examples on angular.io uphold this convention.
It may also be important to note that when generating a Pipe, Component, or Service that the classes are in fact suffixed with the keyword (e.g UppercasePipe, AppComponent, UserService).
Any way, great tool guys! Enjoying the webpack'd version of the cli.
Thanks! We'll be in touch soon.
The text was updated successfully, but these errors were encountered:
Windows 10, build 14393
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:angular-cli: 1.0.0-beta.11-webpack.2
node: 6.2.2
os: win32 x64
do on your code? etc.
ng g directive highlight
more information.
n/a
The non-issue is with the generated directive class. In the above example, here's what will be generated (highlight.directive.ts) -
Shouldn't the class decoration instead be -
export class HighlightDirective {
All the provided examples on angular.io uphold this convention.
It may also be important to note that when generating a Pipe, Component, or Service that the classes are in fact suffixed with the keyword (e.g UppercasePipe, AppComponent, UserService).
Any way, great tool guys! Enjoying the webpack'd version of the cli.
The text was updated successfully, but these errors were encountered: