title: AngularJS ng-click with data-toggle
body: <p>I have a list item which toggles modal and sets a param using ng-click
  the problem is when calling a function in any other place which logs <code>Course.SelectedCourse</code> it's undefined although <code>Course.ID</code> has a value.</p>
  
  <pre><code>&lt;li class="facebook" style="width:33%;"&gt;
     &lt;a ng-click="Course.SelectedCourse = Course.ID" data-toggle="modal" data-target="#myModal"&gt;
        &lt;span class="glyphicon glyphicon-user"&gt;&lt;/span&gt;
     &lt;/a&gt;
  &lt;/li&gt;
  </code></pre>