title: How can I create a unique URL to Firebase path for sharing using AngularFire?
body: <p>So I have been researching this for quiet a while but I cannot seem to find the correct answer anywhere. I have an idea and I want users to create a list of items and then save this, return a link and share this link. I already know how to return the <code>key()</code> in firebase so that should not be an issue.</p>
  
  <p>My firebase data would look something like this</p>
  
  <pre><code>----Unique id
  
         ---item:"item1"
         ---item:"item2" 
  
  ----Unique id
  
         ---item:"item1"
         ---item:"item2" 
  </code></pre>
  
  <p>How can I get it so that when people hit the save button they get back an URL like this to share: <code>http://www.example.org/-uniqueID</code>. And when other people go to that link they get the correct shared data from that link.</p>
  
  <p>I am sorry I don't have any code for you. I understand the firebase (AngularFire) basics, but this is new to me and I have trouble understanding how to do this.</p>
  
  <p>Can someone point me in the right direction?
  It would mean a lot.TIA</p>
  
  <p><strong>edit</strong></p>
  
  <p>This works:</p>
  
  <pre><code>angular.module("app", ["firebase", "ui.router"])
  
  .controller('liveCtrl', function($scope, $stateParams, $firebaseObject) {
      console.log($stateParams);
  
     var fb = new Firebase('https://xxxx.firebaseio.com/' + $stateParams.uniqueID + '');
      console.log(fb);
  
     $scope.list = $firebaseObject(fb);
     $scope.list.$loaded().then(console.log($scope.list));
  
  
  })
  
  .config(function($stateProvider, $urlRouterProvider) {
  
    $urlRouterProvider.otherwise("home");
  
    $stateProvider
  
    .state('live', {
          url: '/live/:uniqueID',
          templateUrl: 'live.html',
          controller: 'liveCtrl'
      })
  });
  </code></pre>