I am trying to add ng-sortable to my mean.js based application. https://github.com/a5hik/ng-sortable
Following the installation instructions and adapting them to mean.js, I included the js and css files (which load correctly), but where I drop the module dependencies are added:
And insert the sortable module as a dependency.
angular.module('xyzApp', ['ui.sortable', '....']);
My angularjs controller looks like this:
var listers_mod = angular.module('listers'); listers_mod.controller('PagesController', ['$scope', '$http', '$stateParams', '$location', 'Authentication', function($scope, $http, $stateParams, $location, Authentication) { ... } ]);
My first attempt was to add ui.sortable to the controller file above:
var listers_mod = angular.module('listers', ['ui.sortable']);
Obviously, this did not work. As you probably can say that I am very new to mean.js and the MEAN stack in general, so I stumble on this blind. I tried to search and, of course, search here, but I did not find the answers that made any sense to me.
Any help is appreciated.