Skip to content Skip to sidebar Skip to footer

Store Firebase Url In An External Properties File?

I want to put my Firebase url into an external text file and reference that value within my Javascript file. Currently in my files I have var ref = new Firebase('https://

Solution 1:

You could use an Angular Constant. See example

angular.module('app', []);

.value('movieTitle', 'The Matrix');

.controller('MyController', function (movieTitle) {
  expect(movieTitle).toEqual('The Matrix');
})

Post a Comment for "Store Firebase Url In An External Properties File?"