Custom Identity Provider configuration html page and js

Hello :slight_smile:
I’ve created custom saml identity provider with partial html configuration page and js file under resources/js of custom theme for this provider. If I write vanilla js code in it everything works fine, what i’ve stumble upon is registering custom angularjs controller in it and using realm scope for some functions in html page.
Every advice is welcomed :slight_smile: :slightly_smiling_face: