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
{{ message }}
Repository navigation
Generated directive class name should have 'Directive' suffix #1217
$ ng --version
(node:20286) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.6
node: 6.2.1
os: linux x64
Repro steps
The following generate command produces a directive class name without the 'Directive' suffix.
$ ng g directive shared/directives/wrap-if
(node:20210) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
installing directive
create src/app/shared/directives/wrap-if.directive.spec.ts
create src/app/shared/directives/wrap-if.directive.ts
src/app/shared/directives/wrap-if.directive.ts
import { Directive } from '@angular/core';
@Directive({
selector: '[wrap-if]'
})
export class WrapIf {
constructor() {}
}
$ ng version
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.15
node: 6.2.1
os: linux x64
Activity
filipesilva commentedon Aug 19, 2016
@Brocco could you have a look please?
bug(directive): update directive class name to match style guide
bug(directive): update directive class name to match style guide (#1750)
Blasz commentedon Sep 22, 2016
The associated spec file of the directive still imports the wrong directive name:
Is this better suited to a new issue or can this one be re-opened?
hansl commentedon Sep 22, 2016
What version are you using?
ng versionBlasz commentedon Sep 22, 2016
hansl commentedon Sep 22, 2016
Okay I'll reopen this and assign it to @Brocco.
Brocco commentedon Sep 24, 2016
This has been resolved via PR #1940 and will be included in the next release
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.