×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Jun 8, 2017 11:48 AM
Views: 2
Tags: no tags
  1. <!-- HTML -->
  2.  
  3. <html ng-app ng-controller="testcontroller">
  4.   <input type="radio" ng-model="lookup" value="1">Employee Lookup</input>
  5.   <input type="radio" ng-model="lookup" value="2">Company Lookup</input>
  6.   <br>
  7.   lookup = {{lookup}}
  8. </html>
  9.  
  10. <!-- JS -->
  11.  
  12. $scope.lookup = 1; // default Selected 1