Category : compilation

I’m new to unit testing, but decided to create a POC for presenting to my company to encourage my colleagues to start working with TDD. For that, I took the smallest of projects I worked with but I encountered a problem at compilation time while running tests. I have a couple of string extension functions ..

Read more

I have this code, in .html <div style="float:left ;" [ngStyle]="{‘width.%’: CurrentRankPercent, ‘height.px’: 5}"></div> The above code compiles ok. then I add the follow: , ‘background-color’: 0xFF <div style="float:left ;" [ngStyle]="{‘width.%’: CurrentRankPercent, ‘height.px’: 5, ‘background-color’: 0xFF }"></div> It compiles wrong, so, I press CTRL-Z, to undo all changes (and then I just add and remove an ..

Read more

After download of a fresh version of ABP you run NPM install and then NPM start. But then the nightmare starts. There is always a package deprecated, redundant, incompatible or need correction: error TS2307: Cannot find module ‘ngx-bootstrap/modal’ rxjs/Subscription has no exported member ‘Subscription’ Angular @types/moment-timezone/index.d.ts’ not found etc. What is the beginning point or ..

Read more

I have created a custom package using web components, when I integrate in app.component it was working. But when I used in a routing module, package is not rendering is browser.It seems like below in browser’s dev element <app-default-layout> <router-outlet></router-outlet> <app-uam-user-maintenance _nghost-uxk-c83=""> <lib-hierarchy-maintenance _ngcontent-uxk-c83=""></lib-hierarchy-maintenance> <p _ngcontent-uxk-c83="">hierarchy</p> </app-uam-user-maintenance><!–container–> "lib-hierarchy-maintenance" is the custom tag which I have ..

Read more