Skip to content

Commit

Permalink
fix(ionRadio): correctly interpolate ngValue instead of compiling
Browse files Browse the repository at this point in the history
Closes #1464
  • Loading branch information
ajoslin committed May 27, 2014
1 parent 521164d commit 948cffe
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions demos/directive/radio/chooseOne/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: chooseOne
component: ionRadio
---
<ion-header-bar class="bar-positive">
<h1 class="title">Radios</h1>
</ion-header-bar>
<ion-content ng-controller="ChooseOneCtrl">
<h1>
Your Choice: <span class="assertive">{{choice}}</span>
</h1>
<ion-radio ng-model="choice" ng-value="one">One</ion-radio>
<ion-radio ng-model="choice" ng-value="two">Two</ion-radio>
<ion-radio ng-model="choice" ng-value="three">Three</ion-radio>
<ion-radio ng-model="choice" ng-value="four">Four</ion-radio>
<ion-radio ng-model="choice" ng-value="five">Five</ion-radio>
</ion-content>
8 changes: 8 additions & 0 deletions demos/directive/radio/chooseOne/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: chooseOne
component: ionRadio
---
angular.module('chooseOne', ['ionic'])
.controller('ChooseOneCtrl', function($scope) {
$scope.choice = 'two';
});

0 comments on commit 948cffe

Please sign in to comment.