Require.js + domReady? • /r/angularjs

  • subreddit: subreddit find submissions in “subreddit” author: username find submissions by “username” site: example.com find submissions from “example.com” url: text search for “text” in url selftext: text search for “text” in self post contents self:yes (or self:no) include (or exclude) self posts nsfw:yes (or nsfw:no) include (or exclude) results marked as NSFW
  • If you are starting now with your app, or its still small, RequireJS is not the way to go.
  • function (define) { ‘use strict’; define([‘require’,’angular’,’app/app’], function (require, angular) { require([‘domReady!’
  • The problem i had was some dependencies not being declared, it gives the impression that sometimes it works sometimes it doesn’t, but what is happening is sometimes modules loads fast enough that when the controller starts up its fine, but if its slow you get this issue.
  • ], function (domReady) { angular.bootstrap(domReady, [‘app’]); }); }); })(define);

I’ve been noticing that my controller will break after a few page refreshes when I implemented Require.js when I’m testing. I did some research…

@Beepop_Agency: Require.js + domReady?:

I’ve been noticing that my controller will break after a few page refreshes when I implemented Require.js when I’m testing. I did some research and people said the best way to handle it is with domReady. However since there isn’t a lot of documentation on how to implement this, I’m stuck with ‘domReady’ is not defined. Has anyone else used domReady before and also how did you implement it to your controller?

Require.js + domReady? • /r/angularjs

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.