-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
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
Angular 4 with Angular Cli #11
Comments
Here I'm using the @angular/cli, try it out https://medium.com/@evertonrobertoauler/angular-4-universal-app-with-angular-cli-db8b53bba07d |
In this repo I added routing and lazy loading too https://github.com/evertonrobertoauler/cli-universal-demo https://github.com/evertonrobertoauler/cli-universal-demo/blob/master/src/app/app.server.module.ts |
@evertonrobertoauler : That's work fine and thank you for your quick answer (y) |
@evertonrobertoauler but there is a probleme when you try to create something like component : ng g c blog But i change the place of file "app.server.module.ts" to "src/" Second probleme, is about autocompile typescript and reload file not working with "npm run start" |
Try 'ng g c --module=app.module.ts blog' |
There is a problem with scss files, they are not compiled. But the main problem that they included in responce html:
Browser tries to get scss/vars and express throws an error
|
Have a look at this demo with @angular/material: https://github.com/evertonrobertoauler/cli-universal-demo/tree/%40angular/material the @angular/compiler-cli doesn't work well with scss files with imports yet: <style ng-transition="cli-universal-demo">[_nghost-c1] { color: $color-demo }</style> |
Hello ronwormald,
I update angular-cli and with this last version i add angular 4 and all work fine, but how can implement or use angular universal with angular cli
Any idea ?
The text was updated successfully, but these errors were encountered: