javascript - Firebase .constant Not Working Correctly -


I have got a consistent set up in my app.js file, and I got it my controller (main .js), but It does not want to work:

app.js

  angular.module ('fireApp', ['ngmnmate', 'ngcquis' , 'NGRSOSR', 'NGRUT', 'NGSATIZ', 'Najistoch', 'Firebase']). Constant ('FBRRL', 'https://outcomes.firebaseio.com/') ...  

main.js

  var app = angular Modules ('fireApp', ['NGNET', '' NGQQs '', 'NGRSsource', 'NGRUTA', 'NGSNetitz', 'NinjaTouch', 'Firebase']); App.controller ('MainCtrl', function ($ scope, $ filter, $ timeout, $ firebase, FBURL) {...}  

Now I ask why I got two Set up the module, is there any way to do this? I would like to keep my modules, config, and continuous in my (apple) JS file. How can I process that code? Consult ('FBRL') in my (main.js) file from my (aps) file?

Any help please appreciate Thanks in advance.

Of course, there are several ways to do this but I like to have my AngularJs app I create from: app.js file

  angular module ('fireApp', ['NGNET', 'NGQQs']. , 'NGRSOSARS', 'NGRUTU', 'NGSNETIZK', 'Najistoch', 'Firebase']). Custom ('FBURL', 'https://outcomes.firebaseio.com/')  

And in /controllers/main.js I have:

  Angular. Module ('fireApp'). Controller ('myController', ['$ scope', 'FBURL', Fun Ction ($ scope, FBURL) {}])  

This should solve your problem. Note that I have not injected all the things in my form so that you have to add them.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -