We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi every,
I install angular-cli and i create a new project. All it's right but when I begin to add a component I juste make : ng g component myComponent
ng g component myComponent
First bug : spec file generated import : import {MyComponent} from './my-component'; instead of import {MyComponent} from './myComponent';
import {MyComponent} from './my-component';
import {MyComponent} from './myComponent';
Then, I juste want to import myComponent in app Component so I write in my app Component ts : import {MyComponent} from './myComponent/myComponent';
import {MyComponent} from './myComponent/myComponent';
and in @component I add : directives: [ROUTER_DIRECTIVES, MyComponent]
directives: [ROUTER_DIRECTIVES, MyComponent]
And in app Component template html I add : <my-component></my-component>
<my-component></my-component>
That compile there is no error but app Component HTML tag it's not interpreted so I have just : "loading..."
So, could you explain me how import a component in app Component?
Thanks a lot :D
The text was updated successfully, but these errors were encountered:
Please you take a look in the browser's console for errors to share then and report the version of the CLI you're using
Sorry, something went wrong.
In fact the problem was what I have mentionned the camelCase rules in not respect all this issue is the same : #424
Thanks a lot
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.
No branches or pull requests
Hi every,
I install angular-cli and i create a new project. All it's right but when I begin to add a component I juste make :
ng g component myComponent
First bug : spec file generated import :
import {MyComponent} from './my-component';
instead of
import {MyComponent} from './myComponent';
Then, I juste want to import myComponent in app Component so I write in my app Component ts :
import {MyComponent} from './myComponent/myComponent';
and in @component I add :
directives: [ROUTER_DIRECTIVES, MyComponent]
And in app Component template html I add :
<my-component></my-component>
That compile there is no error but app Component HTML tag it's not interpreted so I have just : "loading..."
So, could you explain me how import a component in app Component?
Thanks a lot :D
The text was updated successfully, but these errors were encountered: