-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add documentation to include angular2-logger in an angular-cli project #79
Comments
Hi @francisoud thanks for the contribution, I'll take a look at this once angular-cli is out of beta, as of now I've seen a lot of people having issues with it for various different reasons. Also instead of doing this: |
@vkniazeu isn't this what you were trying to do? |
@langley-agm, thank you! |
The documentation worked fine for me except for the isDevMod() function call, method was not found for AngularCLI :
|
@sleroy about isDevMode() strange because this method still seems to exist https://angular.io/docs/ts/latest/api/core/index/isDevMode-function.html and I've been using it for 6 months... |
Seems like a good time to update the documentation on this matter, as cli is out of beta for a while now ;) |
Any tricks to see the degug logs? I see all levels except those. |
@coffeenexus chrome? make sure you don't have the browser filtering them for you. |
I don't use cli, If anyone has tested this, they believe its the right way to do it and its working in the latest version feel free to make a PR with the added documentation i'll make sure to integrate it soon. |
With Angular-CLI version 1.5.0 I'm getting the following error. ERROR in ./node_modules/angular2-logger/app/core/level.ts |
The current README.md explain how to add angular2-logger to the quickstart project but if one is using angular-cli this is not the way to do it (for example there is no
system.config.js
).Adding third party libs are explain in angular-cli readme but there is a few more thing to set it up :)
Here how I did it on my project (after running
ng new myproject
):npm install --save angular2-logger
For dev in
environment.ts
For prod in
environment.prod.ts
app.module.ts
For example in
app.component.ts
:angular-cli: 1.0.0-beta.18
The text was updated successfully, but these errors were encountered: