Answer the question
In order to leave comments, you need to log in
Is there any lesson or article where working with firebase for ember js is described in as much detail as possible?
Watched this tutorial Installed emberfire
, added it to the environment.js file
contentSecurityPolicy: {
'connect-src': "'self' wss://*.firebaseio.com https://*googleapis.com"
},
firebase: {
apiKey: "AIzaSyB0NegzN8bpiwZQG9Hk1NXHpBTADV9XfqA",
authDomain: "nodecms-c87f6.firebaseapp.com",
databaseURL: "https://nodecms-c87f6.firebaseio.com",
storageBucket: "nodecms-c87f6.appspot.com",
messagingSenderId: "279451456587"
},
addPage: function(){
var self = this;
var title = self.get('title');
var description = self.get('description');
var
menuLeft = self.get('menuLeft'),
menuRight = self.get('menuRight'),
menuTop = self.get('menuTop'),
menuBottom = self.get('menuBottom');
var pageNotActive = self.get('pageNotActive');
var newPage = self.store.createRecord('page-item.add', {
title,
description,
menuLeft,
menuRight,
menuTop,
menuBottom,
pageNotActive
});
newPage.save();
}
export default DS.Model.extend({
title: DS.attr('string'),
description: DS.attr('string'),
menuLeft: DS.attr('boolean'),
menuRight: DS.attr('boolean'),
menuTop: DS.attr('boolean'),
menuBottom: DS.attr('boolean'),
pageNotActive: DS.attr('boolean'),
});
Answer the question
In order to leave comments, you need to log in
According to your screenshot with an error - maybe you need to register rights on firebase?
According to the lessons from the last thing that came across - yoember.com - there is a lot more.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question