Implemented self object as an angular model