title: Firebase startup with ionic and angular js
body: <p>I can't able to access the firebase. Error log shows:</p>
  
  <blockquote>
    <p>Projects created at console.firebase.google.com must use the new Firebase Authentication SDKs available from firebase.google.com/docs/auth/</p>
  </blockquote>
  
  <p>How can I proceed in this? </p>
  
  <p>I want to use authenticate by Email and Password, And I need to setup db and using fetching &amp; update workflow.</p>
  
  <p>I used below coding part,</p>
  
  <p>index.html </p>
  
  <pre><code>&lt;!-- Firebase --&gt;
  &lt;script src="https://cdn.firebase.com/js/client/2.2.4/firebase.js"&gt;&lt;/script&gt;
  &lt;!-- AngularFire --&gt;
  &lt;script src="https://cdn.firebase.com/libs/angularfire/1.1.2/angularfire.min.js"&gt;&lt;/script&gt;
  
  &lt;div class="list"&gt;
              &lt;label class="item item-input"&gt;
                  &lt;span class="input-label"&gt;Username&lt;/span&gt;
                  &lt;input type="email" ng-model="userDetails.userEmail"&gt;
                      &lt;/label&gt;
              &lt;label class="item item-input"&gt;
                  &lt;span class="input-label"&gt;Password&lt;/span&gt;
                  &lt;input type="password" ng-model="userDetails.userPassword"&gt;
                      &lt;/label&gt;
              &lt;button class="button button-full button-positive" ng-click="doLogin()"&gt;
                  Sign In
              &lt;/button&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>app.js</p>
  
  <pre><code>var starterApp = angular.module('starterApp', ['ionic', 'starterApp.UserOneController','starterApp.UserTwoController','starterApp.UserHomeController','starterApp.UserAccountController','starterApp.services','starterApp.Filters','firebase'])
  </code></pre>
  
  <p>UserAccountController.js</p>
  
  <pre><code>.controller('UserAccountCtrl', function($scope,$rootScope,$filter,$firebaseAuth,$ionicLoading) {
  
      $scope.doLogin = function() {
  
  
                  // Adding fireBase
  
                  var ref = new Firebase("https://sierra-e352f.firebaseio.com");
  
                  var eMail = 'suthm@gmail.com';
                  var userPwd = 'suthm@123';
  
                  ref.createUser({
                                 email    : eMail,
                                 password : userPwd
                                 }, function(error, userData) {
                                 if (error) {
                                 alert("Error creating user:", error);
                                 console.log("Error creating user:", error);
  
                                 } else {
                                 alert("Successfully created user account with uid:", userData.uid);
                                 console.log("Successfully created user account with uid:", userData.uid);
  
                                 }
                                 });
  
  
                  });
  </code></pre>
  
  <p>Thanks!</p>