use conditionto judge to call c or not
remove angularjs requirement