My scripts:
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.0/angular.min.js"></script><scriptsrc="https://cdn.firebase.com/libs/angularfire/2.2.0/angularfire.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/3.6.6/firebase.js"></script>
Hello,I'mabeginnerwithfirebaseandangular,Ihavethefollowingsituationinmybank:
Obs.valuesenteredmanually.
NowIwouldliketoleavedynamicwithangular,andIamdoingthefollowingcontrollerform:
app.controller("CtrlList", function($scope, $firebaseArray){
var ref = firebase.database().ref().child("users");
$scope.addUser = function(){
$scope.users.$add({
text: $scope.newUserText
});
};
And so my formulas:
<form ng-submit="addUser()">
<input ng-model="newUserText" />
<button type="submit">Add User</button>
</form>
As a beginner I'm a little lost and I can not save in firebase, I think I'm missing some concept.