2 way binding using angular and firebase