basic behaviers in angularjs