angularjs - What do the parameters in the array of define app do? -


i'm learning angular , trying fix app broken. found culprit, when comment out line 3 here: https://gist.github.com/yajd/7b3243f1d6971202b46e#file-errr-js-l3

it fixes issues. want understand things in array of define('app', [........], function(){}). want in docs im not sure called. after figure out ill dive code uncommenting line bring in.

this full app , line 1426 1 causes issues: https://gist.github.com/yajd/7417c3a335672d58c552#file-gistfile1-txt-l1426

thanks

that define function injecting file dependency file using requirejs http://requirejs.org/ defining module you.

define('yourmodulename', ['othermoduleineed', 'anothermoduleineed'], function(){}) 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -