Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$rootScope not working in html <body> #73

Open
Victor19Rodrigues opened this issue Jan 3, 2023 · 1 comment
Open

$rootScope not working in html <body> #73

Victor19Rodrigues opened this issue Jan 3, 2023 · 1 comment

Comments

@Victor19Rodrigues
Copy link

Victor19Rodrigues commented Jan 3, 2023

Hi @joeldenning @blittle @frehner @TheMcMurder @roanjain,

I'm using singleSpaAngularJS for my AngularJS project, was able to load application but $rootScope features not working.

$rootScope.styleClasses = 'custom-style';
above variable not accessible in application.

I'm trying using this scope in ng-class inside body tag <body>, like that:

<body ng-class="(maximized ? 'maximized ' : '') +
                  ($storage.loggedUser.readOnly ? 'read-only ' : '') +
                  ($storage.loggedUser ? 'is-logged ' : 'not-logged ') +
                  (styleClasses.join ? styleClasses.join(' ') + ' ' : '') +
                  (bodyClass.join ? bodyClass.join(' ') : bodyClass)" id="body-container">

Can you help me, please?

@Andyczc
Copy link

Andyczc commented Mar 2, 2023

Hi @Victor19Rodrigues @blittle @frehner @TheMcMurder @roanjain ,
I have also encountered this problem, is there a way to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants