require(['px-libs/Sortable'], function(Sortable) {
...
});
To use Sortable.js plugin, you need to include the next scripts:
<script src="path/to/js/libs/Sortable.js"></script>
<script src="path/to/js/libs/angular-legacy-sortable.js"></script>
Then inject the plugin into your angular application:
angular.module('yourApp', ['ng-sortable']);
Alternatively, you can include Sortable.js plugin using ocLazyLoad plugin:
$ocLazyLoad.load([
{
serie: true,
name: 'ng-sortable',
files: [
'path/to/js/libs/Sortable.js',
'path/to/js/libs/angular-legacy-sortable.js',
],
},
]);