O'Reilly logo

Mastering ASP.NET Web API by Malendra Hurbuns, Mithun Pattankar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The AppComponent template - HTML for Angular component

Every Angular component accompanies the UI template with its selector. In our example, the aap.component.html file is the template for displaying the UI.

To open the app.component.html file, copy the following code:

    <nav class="navbar navbar-default"> 
      <div class="container-fluid"> 
        <div class="navbar-header"> 
          <a class="navbar-brand" href="#">ngPacktContacts - {{title}}</a> 
        </div> 
      </div> 
    </nav>  
    <div class="container"> 
      <div> 
        <button type="button" class="btn btn-primary"  (click)="createContact()">Create Contact</button> </div> <br> <div id="contactlist" *ngIf="recordsExists"> <br> <table class="table table-hover"> <thead> <tr> <th>First Name</th> <th>Last Name</th> <th>Actions</th> </tr> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required