How to connect to Firebase
<p>I am trying to connect to Firebase using AngularJS.</p>

<p>I know I have to set config info etc. But I don't know where and how.</p>

<p>Where can I put and sync my config in my codes?</p>

<p>Saying my config is like this: </p>

<pre><code>  firebase.initializeApp(config);
</code></pre>

<p>Here are my codes :</p>

<pre><code>&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;title&gt;Test1 with Angular1&lt;/title&gt;
    &lt;!-- Angular --&gt;
    &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"&gt;&lt;/script&gt;

    &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.2.0/angularfire.min.js"&gt;&lt;/script&gt;
    &lt;script&gt;
        var app = angular.module("app",["firebase"]);
        app.controller("myController",["$scope","$firebaseObject",function($scope,$firebaseObject){

            var ref = new Firebase(&lt;url&gt;);
        }]);
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div class="container" ng-app="app" ng-controller="myController"&gt;
        {{ 1+1 }}
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>