christopherthielen / ui-router-extras

THIS PROJECT IS NO LONGER MAINTAINED -- Extras for UI-Router for AngularJS. Sticky States (a.k.a. parallel states), Deep State Redirect (for tab-like navigation), Future States (async state definition)
http://christopherthielen.github.io/ui-router-extras/
MIT License
917 stars 211 forks source link

load module denpendency for 'ng-sotable' module not work #300

Open jackiealex opened 8 years ago

jackiealex commented 8 years ago

//module1.js

define(['angularAMD', 'ng-sortable'], function() {
    var app = angular.module("module1", ['ui.router', 'ng-sortable']);
    app.config(['$stateProvider',
        function($stateProvider) {
            $stateProvider.state({
                name: 'module1',
                url: '/module1',
                templateUrl: './sortable.html',
                controller: function ($scope) {

                }
            });
        }
    ]);
});

//sortable.html

<ul ng-sortable="{animation: 150}">
    <li ng-repeat="i in [1,2,3,4,5,6,7]">oooo{{i}}</li>
</ul>

And, i am sure all resource are loaded successfully, and all code are excuted with no errors. the problem is: sortable list not work, but when i load the ng-sortable in main module before i bootstrap the main module app it works i guess the future has bugs