I wanted to generate a directive with ng g directive
but the CLI feedback was quite un-intuitive!
$ ng g directive
...
Cannot read property 'lastIndexOf' of undefined
Could it be that it wanted one more argument and this command wasn’t built to prompt me with options? Yup! ng g directive myDirectiveName
worked, but what a waste of time :/
Why angular why?
Written with StackEdit.