Update bower components and apply codes to fit on angular 1.2.2