use angularjs to power