Posts

Showing posts with the label ionic-framework

Firebase Variable Not Defined - Pass Variable Between Functions

Firebase Variable Not Defined - Pass Variable Between Functions It's clear I am not passing a variable from one of my other JS files correctly. It is my understanding that if I inject a file, I am able to call functions fromsthat file. I was able to accomplish this in businesses.controller where I call businessesService.uploadImageToFireBase, but I am not receiving the variable or it is not readable when I attempt to do I believe is the same process from businesses.service.js and firebase-stor.service.js. Error I am receiving: angular.js:13424 ReferenceError: storageRef is not defined businesses.service.js: (function() { 'use strict'; angular .module('bizdir-frb-admin.businesses') .factory('businessesService', businessesService); businessesService.$inject = ['firebaseDb', '_', '$firebaseArray', '$firebaseObject', 'listsService', 'firebaseStor']; /* @ngInject */ function busin...