Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
  <meta charset="utf-8">
  <title>Safe deep property</title>
  <script>
   angular.module('example', [])
   .run(function ($rootScope, $parse) {
     var foo = {
      bar: {
        baz: {
          name: 'baz'
        }
      }
    };
    $rootScope.name = $parse('bar.baz.name')(foo);
   });
   </script>
</head>
<body ng-app="example">
  <p>{{ 'Hello ' + name }}</p>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
bahmutovpro
0viewers