'Render angular.js template on click href

Hei friends,I'm kind rusty on mvc I need help. This is the cshtml ,my html and script is in the same page ,I want to render angular html Without refreshing page:

@{
var condition=false;
}

<a onclick="dosome(event)" href="/somewhere">

//I want to catch the click by function like



<Script>
function dosome(e){
e.preventDefault();
//My goal is to change the @condtion to true for rerender the angular html section on bottom
}
</Script>

//On dosome condition display this html 
<div ng-controller="blahblah as blah">
<div ng-if="@condition">
<div ng-include=".../test.html>

</div>
</div>
</div>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source