can add new angular 2 components from "new" menu

I have angular-cli installed globally, 

yet I when I use new-> I don't get the angular components option in the menu.

how can I fix this ?

 

0
6 comments
Avatar
Permanently deleted user

(it works only in project that is create as angular-cli, but I imported a project from a folder.... how can I add it to this project ?)

0

Please make sure that angular-cli.json file is there (must be located in project root dir)

0
Avatar
Permanently deleted user

it's there....

0

strange.. adding this file to the root of any project (even not related to Angular) makes this action available to me:

0

This seems to only work if the file is in the top/root structure. If I have multiple projects and one of them is angular, this stops working. I have to open that sub-project by itself and then the angular-cli options show up. To me this is a bug.

0

It's a known limitation, please follow https://youtrack.jetbrains.com/issue/WEB-24662 for updates

0

Please sign in to leave a comment.