Hi,

I am scaling up on angular and have developed a Calculator app. I have 
created a template foro buttons and creating them on fly using ng-repeat on 
array created in controller. 
The problem here is, all other symbols are coming fine except some special 
symbols like, square root, subscript and superscript. Square root symbol 
can be displayed through √. But when I am passing √ in array, 
It prints the same on button instead of symbol. I have tried with 
hexadecimal code, unicode also, no hits. Can anyone tell me a workaround to 
this? 

HTML Template code:
<input type="button" data-ng-repeat="symbol in operators" 
value="{{symbol}}" class="operators" data-ng-click="numpadUsed($event)" 
data='{{symbol}}' data-ng-class="{true:'symbolLeft', 
false:'symbolRight'}[$index<=4]"/>

Array for operators in controller:
operators = ['+','-','*','/','Sqrt','1/x','%','='];

operators is array created in service. and being passed to scope as:
scope.operators = calculate.operators;

where calculate represents service containing arithmetic operation methods 
and operator array displayed above.


Best Regards
Amit Dhiman

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to