{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/angularfire/issues/866","repository_url":"https://api.github.com/repos/firebase/angularfire","labels_url":"https://api.github.com/repos/firebase/angularfire/issues/866/labels{/name}","comments_url":"https://api.github.com/repos/firebase/angularfire/issues/866/comments","events_url":"https://api.github.com/repos/firebase/angularfire/issues/866/events","html_url":"https://github.com/firebase/angularfire/issues/866","id":184406141,"number":866,"title":"How i get random Value from specific field from the database Question","user":{"login":"Kitsune9Tails","id":9638576,"avatar_url":"https://avatars.githubusercontent.com/u/9638576?v=3","gravatar_id":"","url":"https://api.github.com/users/Kitsune9Tails","html_url":"https://github.com/Kitsune9Tails","followers_url":"https://api.github.com/users/Kitsune9Tails/followers","following_url":"https://api.github.com/users/Kitsune9Tails/following{/other_user}","gists_url":"https://api.github.com/users/Kitsune9Tails/gists{/gist_id}","starred_url":"https://api.github.com/users/Kitsune9Tails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kitsune9Tails/subscriptions","organizations_url":"https://api.github.com/users/Kitsune9Tails/orgs","repos_url":"https://api.github.com/users/Kitsune9Tails/repos","events_url":"https://api.github.com/users/Kitsune9Tails/events{/privacy}","received_events_url":"https://api.github.com/users/Kitsune9Tails/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/firebase/angularfire/labels/invalid","name":"invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/firebase/angularfire/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-21T06:04:24Z","updated_at":"2016-10-24T16:01:57Z","closed_at":"2016-10-24T16:01:57Z","body":"#I get this and work , i need get random startup_url to show \r\nangular.module('StartupApp')\r\n  .controller('ChatCtrl', function ($scope, Ref, $firebaseArray, $timeout) {\r\n    // synchronize a read-only, synchronized array of startups, limit to most recent 10\r\n    $scope.startups = $firebaseArray(Ref.child('startups').limitToLast(10));\r\n    // display any errors\r\n    $scope.startups.$loaded().catch(alert);\r\n\r\n    // provide a method for adding a message\r\n    $scope.addStartup = function(newStartup) {\r\n      if( newStartup ) {\r\n        // push a message to the end of the array\r\n        $scope.startups.$add({ startup_url: newStartup.url, twitter: newStartup.twitter, email: newStartup.mail, \r\n          contact_name: newStartup.contac, location: newStartup.location, logo_img: newStartup.logo, \r\n          category: newStartup.category })\r\n          // display any errors\r\n          .catch(alert);\r\n      }\r\n    };\r\n    function alert(msg) {\r\n      $scope.err = msg;\r\n      $timeout(function() {\r\n        $scope.err = null;\r\n      }, 5000);\r\n    }\r\n    $scope.randomQuote = $scope.startups[Math.floor(Math.random()*$scope.startups.length)];\r\n  });"},"comment":{"url":"https://api.github.com/repos/firebase/angularfire/issues/comments/255784166","html_url":"https://github.com/firebase/angularfire/issues/866#issuecomment-255784166","issue_url":"https://api.github.com/repos/firebase/angularfire/issues/866","id":255784166,"user":{"login":"jwngr","id":4149793,"avatar_url":"https://avatars.githubusercontent.com/u/4149793?v=3","gravatar_id":"","url":"https://api.github.com/users/jwngr","html_url":"https://github.com/jwngr","followers_url":"https://api.github.com/users/jwngr/followers","following_url":"https://api.github.com/users/jwngr/following{/other_user}","gists_url":"https://api.github.com/users/jwngr/gists{/gist_id}","starred_url":"https://api.github.com/users/jwngr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwngr/subscriptions","organizations_url":"https://api.github.com/users/jwngr/orgs","repos_url":"https://api.github.com/users/jwngr/repos","events_url":"https://api.github.com/users/jwngr/events{/privacy}","received_events_url":"https://api.github.com/users/jwngr/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T16:01:57Z","updated_at":"2016-10-24T16:01:57Z","body":"This is a usage question, which is better suited for [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase) or the [Firebase Google Group](https://groups.google.com/forum/#!forum/firebase-talk). Can you please re-post on one of those forums and paste the link here? Please also remember to include version information to help us resolve your issue."}}
{"actor":{"display_login":"jwngr"}}