var and angular var implemented