Questions tagged [angular-component-router]

85 questions
1
vote
2 answers

Components and use of Angular modules in Angular 1.5

I am trying to adopt the new .component released in angular 1.5. Although I am having a tough time understanding where modules fit in now. Before I used to separate my components into angular modules, what relationship does this have now that…
Martin
  • 23,844
  • 55
  • 201
  • 327
1
vote
0 answers

Different layouts with angular component router

I want to build an angular application with the component router. This application consists of two different layouts. One is the login screen with two fields, a button and nothing else. The other one is the main layout with header, sidebar and…
Sebastian
  • 549
  • 1
  • 4
  • 14
1
vote
1 answer

Angular 1.5 component router $canActivate: accessing next route and rerouting in case of no data

I actually have three issues with $canActivate (also look at code below to better understand the issues): When clicking on
yar1
  • 1,331
  • 2
  • 15
  • 26
1
vote
1 answer

Angular 1.5 component $router binding

I'm trying to switch a 1.5x project over to components and use the new component-router. I'm having an issue with how to programmatically access the $router in a couple of components that aren't sitting inside of a directive. Basically I have…
1
vote
0 answers

AngularJS Component wont allow Injection into Lifestyle Hook

Im using Angular 1.5 and building an application in the component structure. I get an Unknown Provider Error when I'm attempting to inject into the $canActivate hook (which shouldn't happen) So heres the…
1
vote
1 answer

(Routable Component) Data tree with adjacent detail pane

We're building an Angular 2 application with a navigable tree (on the left), and an adjacent detail pane (on the right). I want to render about 20-30 different components in the same detail area, depending on what node on the tree is selected. To…
shannon
  • 8,664
  • 5
  • 44
  • 74
0
votes
1 answer

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 instead, I want to show the edit and view options on a…
0
votes
1 answer

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 router"/editdata" is where the id is to be passed. I…
james
  • 155
  • 2
  • 12
0
votes
2 answers

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 this: { path: 'component-A', component:…
ALopez
  • 121
  • 1
  • 13
0
votes
3 answers

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 component button. app.component.html
0
votes
2 answers

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 ... ...
0
votes
2 answers

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, and I want to route their differences in two…
0
votes
0 answers

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 which is dragable and list where items can be droped…
0
votes
1 answer

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 larger desktop version and a version for mobile…
user9979178
0
votes
2 answers

Pass values between two components in angular on the same view

I'm Using angular 4 where I want a layout like below Here, I Want a similar layout. Where the container 1 is of form fields and the second container shows a list of items which were added from the left side form. I want it to be dynamic, When the…