Created
April 26, 2017 00:11
-
-
Save kaueDM/5bbbdeab7aff553a62f75e196be5814a to your computer and use it in GitHub Desktop.
wtf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Instância do Firebase ('database' é o arquivo de configuração pra conectar) | |
const NewsInstance = firebase.initializeApp(database, 'NewsInstance'); | |
const grabData = (dispatch, target) => { | |
return NewsInstance.database().ref(`/company-news/${target}`) | |
.on('value', snap => { | |
console.log('Data: ', JSON.stringify(snap.val())); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
qual o erro q vc esta tendo?