J'ai une configuration d'itinéraire comme celle-ci:
var myApp = angular.module('myApp', []).
config(['$routeProvider', function ($routeProvider) {
$routeProvider.
when('/landing', {
templateUrl: '/landing-partial',
controller: landingController
}).
when('/:wkspId/query', {
templateUrl: '/query-partial',
controller: queryController
}).
otherwise({
redirectTo: '/landing'
});
}]);
Je veux pouvoir faire en sorte que angularjs télécharge à la fois les partiels au début et non sur demande.
C'est possible?