angular js inheritance