Update architecture angularjs