playing with resources in angular