Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app='app'>
<head>
<meta name="description" content="Using $apply in AngularJS with Firebase" />
<script src="//cdn.firebase.com/js/client/2.0.5/firebase.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.js"></script>
  <meta charset="utf-8">
  <title>AngularJS / Firebase</title>
</head>
<body>
  <div ng-controller='MainCtrl'>
    <h2>{{static.length}} static items (from code)</h2>
    <ul>
      <li ng-repeat='item in static'>{{item}}</li>
    </ul>
    
    <h2>{{count}} dynamic items (from Firebase)</h2>
    <ul>
      <li ng-repeat='item in dynamic'>{{item}}</li>
    </ul>
  </div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
pufpro
0viewers