How to configure angular-strap to work with AngularAMD?

98 Views Asked by At

I'm building an application with Angularjs, using AngularAMD to dynamically load modules.

I need now to use Angular-strap(http://mgcrea.github.io/angular-strap/) in this project, but I don't know how to declare-it in my main.js file.

This is my main.js file:

require.config({
   baseUrl: "js/app/",
   paths: {
      'angular': '../angular/angular',
      'angular-route': '../angular/angular-route',
      'angular-animate': '../angular/angular-animate',
      'angularAMD': '../angularAMD/angularAMD',

      'srvItinerarioEscolhido': 'servicos/itinerarioEscolhido',
      'srvComunicacaoWebApi': 'servicos/comunicacaoWebApi',
      'srvCacheDados': 'servicos/cacheDados',
      'dirTabsPesquisas': 'diretivas/pesquisas/dirTabsPesquisas'
   },

   shim: {
      'angularAMD': ['angular'],
      'angular-route': ['angular'],
      'angular-animate': ['angular']
   },


   deps: ['app']
});

Any help?

0

There are 0 best solutions below