You are using a html code for creating a textbox.So now,we are using Directives in the above code is as follows:
Directives in Angular JS: AngularJS directives allow the developer to specify custom and reusable HTML-like elements and attributes that define data bindings and the behavior of presentation components.
@*Here we are using a various directives such as-ng-show,ng-repeat,ng-class,ng- Controller etc. *@ <divclass="container"> <divclass="col-md-12"> <divng-show="divStudent"> <pclass="divHead">{{Action}} Student</p> <table> <tr> <tdstyle="padding-right: 5px;"><b>Student ID</b></td> <tdstyle="padding-right: 5px;"> <inputtype="text"class="form-control"ng- model="StudentID"/> </td> <tdstyle="padding-right: 5px;"><b>First Name</b></td> <tdstyle="padding-right: 5px;"> <inputtype="text"class="form-control"ng- model="FirstName"/> </td> <tdstyle="padding-right: 5px;"><b>Last Name</b></td> <tdstyle="padding-right: 5px;"> <inputtype="text"class="form-control"ng- model="LastName"/> </td> <tdstyle="padding-right: 5px;"><b>Enrollment Date</b> </td> <tdstyle="padding-right: 5px;"> <inputtype="text"class="form-control"ng- model="EnrollmentDate"/> </td> </tr> <tr> <inputtype="button"class="btnAdd btn
btn-primary"value="Save"ng- click="AddUpdateStudent()"/> </td> </tr> </table> </div> </div> </div>
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Can you answer this question?
Write Answer1 Answers