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

error : extend is not a function, injecting ct.ui.router.extras #375

Closed ShrinathGupta closed 6 years ago

ShrinathGupta commented 6 years ago

While trying to inject ct.ui.router.extras, getting following error:

angular.js?1.0.35.2:4987 Uncaught TypeError: extend is not a function
    at inherit (ct-ui-router-extras.js:160)
    at ct-ui-router-extras.js:873
    at Object.invoke (angular.js?1.0.35.2:5040)
    at StateProvider.origProvider.$get (angular.js?1.0.35.2:4907)
    at Object.invoke (angular.js?1.0.35.2:5040)
    at angular.js?1.0.35.2:4832
    at getService (angular.js?1.0.35.2:4981)
    at injectionArgs (angular.js?1.0.35.2:5006)
    at Object.invoke (angular.js?1.0.35.2:5032)
    at Object.enforcedReturnValue [as $get] (angular.js?1.0.35.2:4873)

I am using following versions: AngularJS : v1.6.6 Angular UI router: v1.0.6 Ui-extras : v0.1.3 (Reference: <script src="https://cdnjs.cloudflare.com/ajax/libs/ui-router-extras/0.1.3/ct-ui-router-extras.js"></script> )

IS there something I missed.?

Help will be really appreciated.

ShrinathGupta commented 6 years ago

It was because of not the proper sequence of angularJS loading.