danielepiccone / ng-pageslide

AngularJS sliding panel for serving additional content from off the page
http://danielepiccone.github.io/ng-pageslide/examples/
451 stars 160 forks source link

Webpack support #85

Closed wendellmva closed 8 years ago

wendellmva commented 8 years ago

You have this package up on npm but when requiring it with webpack it throws an error.

I want to do this like with all the angular components from google like angular-resource. var app = angular.module("app", [require("angular-pageslide-directive")]); but modules are not supported in your library could you please fix this for those who love using webpack in combination with excellent angular directives like yours?

I have no clue how to do it myself else I would.

Thanks

danielepiccone commented 8 years ago

Aaccording to this article is just about specifying the dependency http://angular-tips.com/blog/2015/06/using-angular-1-dot-x-with-es6-and-webpack/ Does this solves your problem?

danielepiccone commented 8 years ago

Any news about if this problem has been solved?

danielepiccone commented 8 years ago

Took some time to setup a boilerplate project with a bundler and this directive, I added an UMD module definition that works with Webpack.