Search Posts

Category: angularfire

Child Class auto generates id when pushing data in firebase database

I am trying to push data into by firebase database using angularjs. I used the system as the key and then the equipment as the child, but when i push the data it generates a key and under that it stores the equipment. I want it to store my data like so: System -> Equipment1 -> Equipment2 -> Equipment3 System2 -> Equipment1 -> Equipment2 -> Equipment3 Here is my code: /*global angular*/ var app = […]

"Angular not defined" using Mobile Angular UI and Angularfire

I’m trying to implement a mobile app using mobile angular ui with a firebase data base. But I can’t include firebase without getting this error: Uncaught ReferenceError: angular is not defined at angularfire.min.js:1 at angularfire.min.js:1 I don’t understand why this happens, because I include angular before the other dependencies? (not the “normal” angular but mobile-angular-ui) <!DOCTYPE html> <html> <head> <meta charset=”utf-8″ /> <title>(…)</title> <meta http-equiv=”X-UA-Compatible” content=”IE=edge,chrome=1″ /> <meta name=”apple-mobile-web-app-capable” content=”yes” /> <meta name=”viewport” content=”user-scalable=no, initial-scale=1.0, […]