angularjs - Ionic App I've been having this issue for quite some time now is it a permissions issue? -


after logging in app want bind profile(front end) data (username , email) front end. doesn't work. there i'm doing wrong here?

$scope.login = function() {    fbref.$authwithpassword({      email: $scope.email,      password: $scope.password    }).then(function(authdata) {      $scope.userprofile = authdata;      $state.go('tabscontroller.pendingtasks');    })  }
<div ng-controller="loginctrl" class="card" ng-show="user">    <div class="item item-divider">username: {{userprofile.email}}&nbsp;&nbsp;&nbsp;    </div>    <div class="item item-text-wrap">      {{userprofile.password.email}}    </div>  </div>

according documentation success callback returns object fields uid, provider, auth, , expires. put breakpoint inside callback or log console.

https://www.firebase.com/docs/web/api/firebase/authwithpassword.html

console.log('authdata', authdata); 

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -