Skip to content
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

Using debugout.js in angular 4 #11

Open
Bushira23 opened this issue Nov 28, 2017 · 3 comments
Open

Using debugout.js in angular 4 #11

Bushira23 opened this issue Nov 28, 2017 · 3 comments

Comments

@Bushira23
Copy link

No description provided.

@Bushira23
Copy link
Author

Hi,
Is there a guideline on using your lib in angular 4 app? I tried and I am faced with the following issues:
ERROR Error: Uncaught (in promise): ReferenceError: debugout is not defined
Kind Regards,
Rachidi

@medexdev
Copy link

I add a function at the top and call that function to get debugout.
function getDebugOut() { return new debugout(); }
Then in controller or factory, call it.
var bugout = new getDebugOut(); bugout.log(message);

@inorganik
Copy link
Owner

You should be able to use it in Angular 4 & later now since it is modularized. Please report back and let me know if this works, after installing the latest version of debugout (1.0.0):

import { Debugout } from 'debugout.js';
...
const bugout = new Debugout();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants