<script src="https://www.gstatic.com/firebasejs/3.2.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "myapikey",
authDomain: "test.firebaseapp.com",
databaseURL: "https://test.firebaseio.com",
storageBucket: "test.appspot.com",
};
firebase.initializeApp(config);
</script>import Ember from 'ember';
export default Ember.Controller.extend({
dataBasePath: null,
updateNewValue: function() {
// do some funny
},
listner: firebase.database().ref(dataBasePath).on('value', function(snapshot) {
this.updateNewValue();
}), setupController: function(controller, model) {
controller.set('model', model);
controller.set('dataBasePath', "/subject");
},--
You received this message because you are subscribed to the Google Groups "Firebase + EmberJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-embe...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.