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.3.15/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-app="myApp">
  <div ng-controller="myController">
    <p>I want to be able to access the partner as 'PartnersService.partner' and see as it changes.</p>
    <p>{{partner}}</p>
    
    <p>I would like to avoid using getters to correctly see our current partner's name:</p>
    <p> ({{partner}}).</p>
    
    <p>I also solved the binding by adding an extra object literal: {{PartnersService.extraObjectLiteral.partner.name}}, however this still results in a code that doesn't feel natural.</p>
    
    <p>Neither of these solutions seem to me angularish and I am afraid I'm missing something obvious.</p>
  </div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers