title: Initialize ng-model string with function
body: <p>Is there a way to conditionally initialize ng-model to a certain string with a function? In the following, ng-bind works, but ng-model doesn't:</p>
  
  <pre><code>var app = angular.module('app', []);
  app.controller('mainCtrl', ['$scope', function ($scope) {
    $scope.value = "hello";
    $scope.value2 = "hello2";
    $scope.get = function (bool) {
        return (bool) ? "value" : "value2";
    };
  }]);
  
  &lt;html ng-app="app"&gt;
    &lt;body ng-controller="mainCtrl"&gt;
      &lt;div ng-bind="{{get(true)}}"&gt;&lt;/div&gt;
      &lt;input ng-model="{{get(true)}}" /&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><b>Clarifying Edit:</b>
  I have two separate data sets that a given input could effect. Which one it effects is conditional on values elsewhere in the model. There are dozens of different input types, and I want to avoid writing ng-switch's into every single one, as that would get rather messy.</p>
  
  <p><b>Example: </b><a href="http://plnkr.co/edit/fKlbN8qcjGjzqjRayviT?p=preview" rel="nofollow">http://plnkr.co/edit/fKlbN8qcjGjzqjRayviT?p=preview</a></p>