Blog

how to use NgSwitch case in angular

<div =”color”> <div *ngSwitchCase = “‘red'”> Red</div> <div *ngSwitchCase = “‘Blue'”> Blue</div> <div *ngSwitchCase = “‘Black'”> Black</div> <div *ngSwitchDefault>This is Default </div> </div>

Open URL in same window and in same tab

Just Try in button. <button onclick=”location.reload();location.href=’url_name'” id=”myButton” class=”btn request-callback” >Explore More</button> Using href <a href=”#” class=”know_how” onclick=”location.reload();location.href=’url_name'”>Know More</a>