Skip to content
This repository was archived by the owner on Nov 29, 2017. It is now read-only.

Make AMD module 'angular-logX' the main AMD module #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Make AMD module 'angular-logX' the main AMD module #7

wants to merge 4 commits into from

Conversation

k7sleeper
Copy link
Contributor

After merging this PR, we'd have the situation:

  1. If you need a decorated logger, just require 'mindspace/logger/ExternalLogger'
  2. If you need decorated loggers with AngularJS, require 'angular-logX' and add require('angular-logX').name to your AngularJS module.

This solution is not tainted with side-effects as the current solution is.

Klaus Sevensleeper added 3 commits November 7, 2014 13:22
If "angular-logX" is required only the module 'mindspace.logX' with the LogDecorator configured is created. If a custom app requires ExternalLogger it also has to require "mindspace/logger/ExternalLogger".
.Removed some incomplete and missleading comments.
Make 'angular-logX' a AMD module which, when required, creates and exports the Angular module with the configured logging decorator. Client's only need to require 'angular-logX' and put that module.name to their module's dependency list.
@ThomasBurleson
Copy link
Owner

@k7sleeper -
Have you tried these changes with Demo 2 ?
Or do you have another demo that validates the usages ?

@k7sleeper
Copy link
Contributor Author

No!

I'll try them ASAP.

@k7sleeper
Copy link
Contributor Author

No, they do not run. The first 3 run well, but the next does not. It seems that the demos aren't up-to date. I had to fix an issue in demos/build/bower.json and so on ...

renamed angularjs-logDecorator dependency
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants