AngularJS provides ng-model to bind values to input fields. Binding radio buttons to scope variables is tricky.

Markup

Here you can find HTML markup of Gender radio buttons. 
<input type="radio" ng-model="gender" value="male" name="gender"/> Male
<input type="radio" ng-model="gender" value="female" name="gender"/> Female

Script

This is script to access radio input variables in scope controllers

function myCtrl($scope) {
    $scope.gender = 'male';
}

22 comments:

  1. Thanks for sharing.I found a lot of interesting information here. A really good post, very thankful and hopeful that you will write many more posts like this one.
    ucbrowser.vip
    shareit.onl
    mxplayer.pro

    ReplyDelete
  2. Spot on with this write-up, I actually think this website needs far more attention. I’ll probably be back again to read more, thanks for the info!

    Veterans Day Images
    Thank You Veterans Day Images
    Veterans Day Wallpaper
    Happy Veterans Day Images
    Thank You Veterans Day HD images

    ReplyDelete
  3. Best Web design and development company in Brampton
    A team of experience and energetic professionals expertise in all sort of web designing, web development, e-commerce and SEO marketing services.

    ReplyDelete
  4. Chauffeur cab service in Melbourne
    Silver Executive Cab is becoming the first choice of the people. It is only because of the best quality chauffeur cars & limos Melbourne. Our own VHA Chauffeur Cars & Limos network Melbourne.

    ReplyDelete
  5. Mortgage Broker in Gta Toronto
    We work with Canada's premium financial institutions to offer you the best mortgages in the market and the lowest interest rates. Names such as Royal Bank, Scotia Bank, Bank of Montreal, TD Canada Trust, CIBC, National Bank, and more, guarantee the best service and highest savings for you.

    ReplyDelete
  6. Best Real Estate Realtor in Toronto
    Many of you now need in home but you might be thinking where to spend because your home is your largest investment because generally home cost approx 500k Dollar and home is the place where you have to spend almost half of your life in the home so to choose right home for you we are here best real estate in Toronto.

    ReplyDelete
  7. Best Place For visit in India
    You are our priority. Our dedicated and trained team of customer care executives resolves all your queries and matters swiftly so that you can have delightful experience.

    ReplyDelete
  8. Travel Tours in India
    Within a short span of its existence LITEWINGS Travels, has emerged as a name to reckon with in the business of Inbound/outbound Tourism. We have adapted our operations to the fast-paced cyber world and bring you India, online. Now you have access to a wealth of information at your desktop just a click away

    ReplyDelete
  9. nice information thank you for give us this helpful information. i found latest offer in hosting company hostinger coupon code you cant believe hostinger giving use a 90% off on hosting yes its true check it your self

    ReplyDelete
  10. Thank you for sharing such a nice post

    ReplyDelete
  11. Amazing article that it gave me alot of information and nice template as well.
    Visit our website for Ahmad faraz poetry in urdu Thanks

    ReplyDelete
  12. Love to read more from your side

    ReplyDelete
  13. thanks for sharing information awesome blog post click here

    ReplyDelete

Blogroll

Follow this blog by Email

Popular Posts