One of our client is trying to implement role based security in KUIB. The Wiki   shows how to do it for Angular based project but if same code is used for AngularJS based project, console shows error that "There is an error in src/app/modules/application/login/login.view.component.ts that Property "getUserRolesFromServer" does not exist on type "LoginViewComponent"."

What is the correct way to implement Role based security in KUIB for AngularJS based project?