Correcting indent
Fixing undefined function
Upgrading angular dependency