Skip to content

This Ember Helper help to compute the value of statement In which has any one operator apply on any two arguments or operand .

Notifications You must be signed in to change notification settings

ajaysaini235/Ember-Helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Ember-Helper

This Ember Helper help to compute the value of statement In which has any one operator apply on any two arguments or operand .

step 1 : git clone https://github.com/ajaysaini235/Ember-Helper.git

step 2 : After clone Ember-Helper copy op.js file and add this file into your Ember Project > helpers folder

step 3 : Add in your .hbs file following code {{op "operator" operand1 operand2}}"

Examples :

1 : class="col-sm-6 {{if (op "===" 5 6) 'enabled' 'disabled'}}"

2 : class="col-sm-6 {{if (op "==" "aa" "bb") 'enabled' 'disabled'}}" ></div

3 : class="col-sm-6 {{if (op "||" (op "<" 2 4) (op "==" 4 4)) 'enabled' 'disabled'}}"

4 : class="col-sm-6 {{if (op "&&" (op "<" 2 4) (op "==" 4 4)) 'enabled' 'disabled'}}"

5 : {{op "+" 3 10}}

etc .....

About

This Ember Helper help to compute the value of statement In which has any one operator apply on any two arguments or operand .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published