angular-amd

how to use chart.js with angular-chart using requirejs

て烟熏妆下的殇ゞ 提交于 2019-12-17 21:29:10
问题 Trying to implement lazy load using requirejs . Everything is fine when I am not using charts. But when I want to use charts(angular charts), not going to sucseed! Using chart.js with angular-chart. Here is main.js: require.config({ baseUrl: "http://localhost/ums/angular/js", paths: { 'angular': 'lib/angular.min', 'ngRoute': 'lib/angular-route.min', 'flash': 'lib/angular-flash', 'angular-loading-bar': 'lib/loading-bar.min', 'ngAnimate': 'lib/angular-animate.min', 'ui.bootstrap': 'lib/ui

angularAMD: view does not wait for loading js

泄露秘密 提交于 2019-12-11 09:38:56
问题 I have problem with angularAMD. Main.js: require.config({ baseUrl: "/assets/static/app", paths: { app: 'app', angular: '../angular/angular', angularAMD: '../require/angularAMD', angularRoute: '../angular/angular-route', angularRedactor: '../angular/angular-redactor', angularUpload: '../angular/angular-upload', angularSanitize: '../angular/angular-sanitize', angularAnimate: '../angular/angular-animate', angularBootstrap: '../angular/angular-bootstrap', jquery: '../jquery/jquery.min', bootstrap

AngularAMD + ui-router + dynamic controller name?

纵饮孤独 提交于 2019-11-26 18:57:03
I'm trying to write a generalized route in my application and resolve the view and controller names on the fly based on the route params. I have the following code that works: $stateProvider.state('default', angularAMD.route({ url: '/:module/:action?id', templateUrl: function (params) { var module = params.module; var action = module + params.action.charAt(0).toUpperCase() + params.action.substr(1); return 'app/views/' + module + '/' + action + 'View.html'; }, controller: 'userController', })); However, I'm unable to figure out a way to resolve the controller name dynamically. I tried using

AngularAMD + ui-router + dynamic controller name?

余生长醉 提交于 2019-11-26 06:41:43
问题 I\'m trying to write a generalized route in my application and resolve the view and controller names on the fly based on the route params. I have the following code that works: $stateProvider.state(\'default\', angularAMD.route({ url: \'/:module/:action?id\', templateUrl: function (params) { var module = params.module; var action = module + params.action.charAt(0).toUpperCase() + params.action.substr(1); return \'app/views/\' + module + \'/\' + action + \'View.html\'; }, controller: \