Skip to main content
0 votes
1 answer
993 views

Is there any way to pop up a dialog in angular using material while using the anchor tag?

This is my html file. In the html file there are 2 anchor tags gives. One is for edit and the other is for view details options. Both are being redirected to other edit and view components. But ...
seventhball's user avatar
2 votes
2 answers
5k views

How to display header Component only on certain pages in Angular (now it diplays only on reload)

I have an app that has a HomeComponent, where I don't want to show a HeaderComponent. Also, I have other 4 routes where I do want to render the Header. I could made it work, but there is a little bug ...
Federico Rojas's user avatar
2 votes
0 answers
1k views

Check which component is displayed depending on the router-outlet

I have the following app.component.html structure: <app-navbar></app-navbar> <router-outlet></router-outlet> <app-footer></app-footer> I'm trying to change the ...
user avatar
0 votes
1 answer
2k views

passing id in (click) to another component or route

I need to pass an id along with a click event to another component here is the component.ts editData(rcid){ this.router.navigate(['/Editdata']); } rcid is the id of the clicked item. And ...
james's user avatar
  • 185
1 vote
2 answers
5k views

How can I display a specific child component inside a parent component with its own routing in Angular?

I can easily display a child component inside a parent component, but how can I switch the displaying of a child based on a route? Is it possible to create a routing mechanism like this without using *...
chuckd's user avatar
  • 14.8k
2 votes
2 answers
3k views

Passing an object into Angular 9/10 resolver

I am stuck with passing object to the resolver in Angular 9/10. Any help will be deeply appreciated. I have a page SearchUser.component.ts from where I am navigating to another page UserInfo.component....
Suzane's user avatar
  • 203
0 votes
2 answers
567 views

Pass callback to angular component create with route

I have a component that is created with a route and this component has an Output EventEmitter. How can I subscribe to this Output if the component was created on routing? The component is created like ...
ALopez's user avatar
  • 141
1 vote
3 answers
1k views

Angular 6 child to Parent interaction through router outlet

I have app component with two child comoponent, namely first and second and I'm navigating through router outlet tag. I want to change parent component variable to 'XYZ' when I click on child ...
mohit tiwari's user avatar
0 votes
2 answers
106 views

How to bind components in Angular 8?

I hope that's simple question, but I stuck a little bit. I have the next structure: Component A <ng-template [ngIf]="flaggedRecords"> ... <button (click)="showComparisonWindow(pi);">...
ux__ui.designer's user avatar
1 vote
1 answer
2k views

Load component after every button click on angular

I am experiencing some difficulties when I try to organize communication between two components in Angular. The parent's component is "animal" and the child component is "animalEspece". That's how ...
Alain Al-Shikhley's user avatar
1 vote
0 answers
400 views

Using router-outlet within a loop in angular

I am facing a very tricky situation. I have defined multiple routes that are mapped to different components in my application. I want to load the component corresponding to given route in <router-...
Madhur Maurya's user avatar
0 votes
2 answers
372 views

Is it possible to use two routes in angular?

I do an Angular app using Angular7, and i try to use two "router-outlet" tag, For example I have two components "main" and "main2", that are halfly the same, they are routed in a parent component, ...
iti's user avatar
  • 35
0 votes
0 answers
370 views

Connect Element references between two components

I am trying to split a big components into smaller ones. I've implemented there drag&drop functionality from Angular Material which connects two lists by hash marks. The problem is that now list ...
Mateusz Gebroski's user avatar
1 vote
1 answer
1k views

Angular 7 url routing configuration

I'm working on an angular 7 application, where I have been facing an interesting issue right now. My aim is to not using the "hardcoded URLs" throughout in the application. So, I have an approach ...
siva nanda perumal's user avatar
0 votes
1 answer
388 views

Refresh all component routings

I wanted to make a angular 7 website responsive. I have two very different layouts and instead of hiding all of this unnecessary HTML with CSS Media Queries I created two components corresponding to a ...
user avatar

15 30 50 per page
1
2 3 4 5 6