class angularjs assignment