single-spa-angularjs
single-spa-angularjs copied to clipboard
$rootScope not working in html <body>
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?
Hi @Victor19Rodrigues @blittle @frehner @TheMcMurder @roanjain , I have also encountered this problem, is there a way to solve it?