add demo for ng resource