type in angularjs