apply angularjs