Use methods on angularjs  directly.