angularAMD is an utility that facilitate the use of RequireJS in AngularJS applications supporting on-demand loading of 3rd party modules such as angular-ui.
Questions tagged [angular-amd]
59 questions
0
votes
1 answer
AngularAMD load module in directive (like underscore)
I'm trying to use the angularAMD module with my project, using custom directives.
In these directives I have to use external modules, such as underscore, but I can not load these modules only in the directive.
main.js
require.config({
baseUrl:…

Hikari
- 589
- 7
- 29
0
votes
1 answer
AngularAMD + RequireJS: Failed to instantiate module ngStorage
Truly turning crazy over this one:
I am trying to combine AngularJS and RequireJS. After several failed attempts I turned to AngularAMD. I followed the basic process, but I keep getting this nasty error:
Failed to instantiate module ngStorage due…

Eric Leibenguth
- 4,167
- 3
- 24
- 51
0
votes
1 answer
How to load a directive into a module after instantiating using requirejs
To describe my hurdle, A little back story. I was injecting all the requirejs path files(directives basically) which contains any directive to my main module in the app.js, which was working perfect. Its somewhat like
define(['angularAMD',…

Gautam Kumar Samal
- 758
- 1
- 7
- 23
0
votes
1 answer
Dependency Injection with Require JS + Angular JS. App requires auth, but auth requires app
I'm trying to load an authService into my application using AngularJS + RequireJS. The app, requires authService to load, and authService requires app to load. But I can't seem to get the load to work properly.
I've tried setting a main controller…

jassok
- 421
- 3
- 12
0
votes
1 answer
Angularamd in typescript controller registering
I am setting up a site in angular along with requirejs using typescript.
I got it working to a point where i can load my controllers asynchronously and set a variabele in the scope which will hold my controller:
///

Jurgen Welschen
- 871
- 1
- 13
- 21
0
votes
1 answer
How to minify AngularAMD code?
I've been looking at the AngularAMD library and I'm wondering if there's a way to minify the code for use in production.
I've taken a look at the AngularAMD sample which does have a Grunt configuration, but unfortunately, the instructions for…

A. Duff
- 4,097
- 7
- 38
- 69
0
votes
1 answer
bootstrap AngularJS service with asynchronous data using angularAMD
I have a problem pretty much similar than the issue exposed in this question (AngularJS : Initialize service with asynchronous data). My difference is that I'm using angularAMD to load scripts asynchronously and I just can't fit the approaches above…

Norbor Illig
- 658
- 6
- 14
0
votes
2 answers
AngularJS External Controller/View Files
Idk if my subject is descriptive enough but i'll try my best to describe what I am doing. I really want to learn and understand Angular and I am coming from Backbone.js.
My set up is using RequireJS Angular and AngularAMD…

Banning
- 2,279
- 2
- 16
- 20
0
votes
0 answers
How to configure angular-strap to work with AngularAMD?
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…

Norbor Illig
- 658
- 6
- 14
0
votes
1 answer
Load dynamical controller with AngularAMD in route config
i have next route configuration:
.config(["$routeProvider", function ($routeProvider) {
$routeProvider
.when('/something/:id', angularAMD.route({
templateUrl : function ($routeParams) {
…
0
votes
1 answer
Angular Js Lazy loading and html5mode
So I'm currently messing around with using LazyLoading in angularJS with AngularAMD, Require.js, and Angular-Route, and I keep running into an error when html5Mode is enabled. When html5Mode is off, everything works fine. However, if its on, the…

jassok
- 421
- 3
- 12
0
votes
1 answer
angularAMD.bootstrap(app) line is throwing an exception in IE10 IE11 browsers but works in Google Chrome
I am trying to implement lazy loading with angularAMD
Plunker please click to reproduce in IE browser
Here is my code. Please help me...
require.config({
baseUrl: "js/scripts",
// alias libraries paths. Must set 'angular'
paths: {
…

Natarajan Selva
- 23
- 1
- 3
-1
votes
1 answer
AngularAMD loading module does not work
I'm trying to use angularAMD for a new project, but i can't get it to work.
i have the following:
main.js
require.config({
baseUrl: "static/",
paths: {
'angular': 'bower_components/angular/angular',
'angularAMD':…

ZvL
- 793
- 2
- 11
- 25
-1
votes
1 answer
Karma + AngularAMD: troubleshooting error "angularAMD not initialized."
Struggling here, spent hours on this already. Karma test keeps saying:
Error: angularAMD not initialized. Need to call angularAMD.bootstrap(app) first.
Take a look at the build on runnable.com. Hit Run button or type gulp in the terminal to run the…

BuildTester1
- 625
- 1
- 7
- 22