use scope only

This commit is contained in:
Javier 2016-06-10 09:41:13 -03:00
commit aa49f03fc1
2 changed files with 21 additions and 28 deletions

View file

@ -2,10 +2,10 @@
ng-init="titleSection='Color'; goBackToState = 'preferences'">
</div>
<div class="content preferences" ng-controller="preferencesColorController as p" ng-init="p.init()">
<div class="content preferences" ng-controller="preferencesColorController">
<h4></h4>
<ion-radio class="size-12" ng-repeat="c in p.colorList" ng-value="c" ng-model="data.currentColor" ng-click="p.save(c)">
<ion-radio class="size-12" ng-repeat="c in colorList" ng-value="c" ng-model="currentColor" ng-click="save(c)">
<span ng-style="{'color': c}">&block;</span>
</ion-radio>
</div>