html - Angular2 - Radio button value binding -


i have problem bind data group of radio buttons. want bind visible value whenever check 1 of radio button. can me this?

thanks lot!

<div class="col-lg-8 inputs-group">     <div class="btn-group" data-toggle="buttons">         <label class="btn btn-primary active">             <input type="radio" name="visible" [(ngmodel)]="visible" autocomplete="off" value="true">yes         </label>         <label class="btn btn-primary">             <input type="radio" name="visible" [(ngmodel)]="visible" autocomplete="off" value="false">no         </label>     </div> </div> 


Comments

Popular posts from this blog

php - Displaying JSON data posts for blog using just the post id -

docusignapi - Documents restrictions within a package -

javascript - angular.forEach loop with $http.get -