This is the code for Angular js