A basic function evalution
updated todo
Using ng-if to display value or code