Closed mavrick closed 3 years ago
So, to answer my own question. It can be done like this:
import 'angular-socket-io';
var app = angular.module("website", ["btford.socket-io"]);
+1. I come with this question too. I have to set the literal of the module manually, which is not consistent with my ES6 import style.
mport 'angular-socket-io';
var app = angular.module("website", ["btford.socket-io"]);
I am having the same problem.... if i try to add ", ["btford.socket-io"]" nothing is loaded....
Hey there,
I'm currently rebuilding my site to use webpack because I'm wrapping it up for use within Electron however I run across this error when including
angular-socket-io
library:code:
I'm using ES6 with Babel and Webpack. Any help would be appreciated.