single-spa-angularjs icon indicating copy to clipboard operation
single-spa-angularjs copied to clipboard

$rootScope not working in html <body>

Open Victor19Rodrigues opened this issue 2 years ago • 1 comments

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?

Victor19Rodrigues avatar Jan 03 '23 20:01 Victor19Rodrigues

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

Andyczc avatar Mar 02 '23 02:03 Andyczc