title: how to bind variable in factory to view
body: <p>I have searched through the net for my query. I found some answer but not what i was looking for. So i am posting here.</p>
  
  <p>I have a factory which has an object named risk.</p>
  
  <pre><code>angularApp.factory('RiskMinderFactory', function(){
  
  var risk = {
          a: '',
          b: '',
          c: '',
  
  };
  
  });
  </code></pre>
  
  <p>I have a view that is an jsp</p>
  
  <pre><code>&lt;form&gt;
      &lt;input id="input_3"  name= "a" value={{risk.a}} /&gt;
      &lt;input id="input_4"  name= "b" value={{risk.b}} /&gt; 
  &lt;/form&gt;
  </code></pre>
  
  <p>In my old application i have a third party java script which takes form object as input and makes some modification to dom element.</p>
  
  <p>What i want is when the 3rd party javscript makes some dom changes it should be reflected in factory object.</p>
  
  <p>How can i achieve this?</p>