title: How to pass data from controller view to angular scope?
body: <p>I have a C# MVC web application and I have started exploring the use of AngularJS to make my views cleaner.</p>
  
  <p>I would like to pass data retrieved from my model(SQL database) into Angular scopes. All the AngularJS examples I have seen so far passes data into the scope in a JSON format:</p>
  
  <pre><code>Example:
  $scope.contacts = [
  {type:'phone', value:'408 555 1212'},
  {type:'email', value:'john.smith@example.org'} ];
  </code></pre>
  
  <p>I would like to know if it’s possible to pass data from a controller view directly into a Angular scope without using the JSON format.</p>
  
  <p>Example say my controller returns the following view.      </p>
  
  <pre><code>public ActionResult Index()
  {
    Var mymodel = mydatarepository.getdate();
    Return View(mymodel);
  }
  </code></pre>
  
  <p>How can I pass the view returned in the above into a Angular scope without using json? </p>