One of our client is trying to implement role based security in KUIB. The Wiki https://community.progress.com/community_groups/openedge_kendo_ui_builder/w/openedgekendouibuilder/2939.how-to-implement-user-roles-in-kendo-ui-builder-2-1-with-an-openedge-backend   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?