how I correctly detect Firebase so jshint stops sounding.
My code works ... only jshint is annoying
app.js
angular .module('morningharwoodApp', [ 'firebase', 'ngAnimate', 'ngCookies', 'ngResource', 'ngRoute', 'ngSanitize', 'ngTouch' ])
main.js
angular.module('morningharwoodApp') .controller('MainCtrl', function ($scope, $firebase) { // var Firebase; var pageRef = new Firebase('https://morningharwood.firebaseIO.com/page'); // var pageRef = new Firebase('https://morningharwood.firebaseIO.com/page'); //init $scope.pages = $firebase(pageRef); $scope.newPage = { title: '', slug: '', url: '', desc: '', active: false, template: [ { type: '' } ], img: '', dateCreated: '', dateUpdated: '' }; //CRUD //add $scope.addPage = function() { $scope.pages.$add($scope.newPage); $scope.newPage = ''; }; });

source share