Skip to content

Pass 'window.angular' instead of 'this.angular'#35

Open
jsdream wants to merge 1 commit intowebadvanced:masterfrom
jsdream:jsdream-patch-1
Open

Pass 'window.angular' instead of 'this.angular'#35
jsdream wants to merge 1 commit intowebadvanced:masterfrom
jsdream:jsdream-patch-1

Conversation

@jsdream
Copy link

@jsdream jsdream commented Aug 28, 2016

The reason for this is to allow using this module with webpack module bundler.
Webpack places module inside a function that's why this no longer pointing to Global Object and angular becomes undefined.

The reason for this is to allow using this module with `webpack` module bundler.
Webpack places module inside a function that's why `this` no longer pointing to Global Object and angular becomes `undefined`.
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

Successfully merging this pull request may close these issues.

1 participant