Skip to content
Advertisement

Tag: angular

Multi-slot transclusion in Angular 6

I am trying to create a component with multi-slot transclusion in Angular 6, following this blog post (which is for Angular 2). I created a component: and then I am trying to use it like this But it throws a compile error: ERROR in : ‘level-icon’ is not a known element What am I missing here? I realize I could

Throttling history state changes to prevent the browser from hanging

This is a beginner angular question. My Angular Application comprises of multiple feature modules.I used authguard by generating guard from the angular-cli and then I use CanActivate in my app-routing module like so : In my auth guard I have written the condition to prevent the user from accessing unauthorized routes : after building I get a warning WARNING in

Rejecting a promise throws “Uncaught (in promise)”

I’m using promises to handle to handle a modal dialog: resolved when the user press the OK button, rejected when cancelled or closed. To resolve and dismiss the modal I use this methods: And when cancel button fires this method within the modal: Everything is working fine and the modal hides, but a console error is logged with this description

Angular 5 ngHide ngShow [hidden] not working

Good day, guys! I am trying to make my Angular 5 app hide elements (or show hidden). However, this seems to not work. I’ve tried ngHide, ng-hide, ngShow, ng-show, [hidden] methods – none of them works. My login.component.ts looks like this: And login.component.html: Am I doing something wrong here? NOTE: I did not change or add anything related to css.

Advertisement