Questions tagged [angular-component-router]
85 questions
0
votes
0 answers
AngularJS components with routes
I have been using AngularJS 1.4.7 for years. Main navigation is based on states defined in a module definition that might look like this:
var htmlReports = angular.module('app.htmlreports', []);
htmlReports.config(
function ($stateProvider) {
…

Mark
- 4,535
- 7
- 39
- 76
0
votes
0 answers
How to call a component from 2 diiferent routes in angular?
I have a userDetails component that can be accessed from two different pages in my application.
It can be accessed from searchUser component and I have a "my account" menu in the header that is available across the application and it is in…

user1613338
- 153
- 1
- 2
- 9
0
votes
2 answers
How to switch between md-tabs and select a specific one dynamically after Submit?
I'am using in an index page md-tab-group where I do have two tabs and each tab has its own component - signin.component and register.component:

k.vincent
- 3,743
- 8
- 37
- 74
0
votes
1 answer
scripts in Angular 4 not working after change view
In my angular 4 app I have some script, when I load the first time all its ok, but when change view to other component of my app and return to main page all its broken the scripts not work. in the console log send message for example this a function…

Andy Torres
- 189
- 1
- 11
0
votes
1 answer
Angular 2 Component not loading in different module
I'm build an application that has a root Module, then under this Module are 3 sub modules. In Module 1 , there is an component that can be reused in Module 3, however, if I go straight to the component URL in Module 3 the component is never load ( I…

julianomontini
- 325
- 4
- 18
0
votes
2 answers
Angular2 Routing with parameters fails
I am having troubles (all sorts of errors in very unexpected places) and my best guess is that it happens because of the way routing is set up.
This is my app-routing.module.ts
const appRoutes: Routes = [
{ path: 'calendar', component:…

pop
- 3,464
- 3
- 26
- 43
0
votes
2 answers
Angular 2 - Why my all routes are not redirected?
[{
path: 'menu',
component: MenuComponent
},
{
path: 'how',
component: HowItWorksComponent
},
{
path: '',
pathMatch: 'prefix',
redirectTo: 'menu'
}]
Above is my root route config why my all routes are not…

mdanishs
- 1,996
- 8
- 24
- 50
0
votes
1 answer
unable to display the view using UI-Router $StateProvider
I am creating a angular application using Angular 1.6.3 components and navigation using UI-Router. But I am not able to get the screen displayed when using UI-Router. I am not getting any error in the console so not able to idetnify what's…

superboy
- 97
- 1
- 2
- 15
0
votes
1 answer
Can a CSS class selector be applied to a component?
I have the following Plunker that uses ui-router and Angular's 1.6x new component feature.
The state 'userRegister' becomes active then initialises the 'userRegister' component. This component injects a new into the then…

I am me
- 131
- 2
- 12
0
votes
3 answers
With angular component and ui-router, can a single controller have multiple templates?
In a component I would like to associate templates to CRUD actions, but use a single controller that handles data for all all of them. Does this make sense with angular components, or should I use several components ?
How would the ui-router state…

Olivvv
- 1,140
- 1
- 13
- 37
0
votes
1 answer
angular 2 route parameter
1.) let's suppose in our routing module we have a path configured like this:
{ path: 'version/:version/system/:system/id/:id' }
2.) in the browser we navigate to:
version/foo/system/bar/id/123
3.) in a component we want to change the URL…

dr7p
- 1
- 3
0
votes
1 answer
Angular2 nested children routing does not find the route match
I have a menu with some buttons, when the user clicks on the menu, the page is directed to another page with list of buttons that have a link to another page.
Therefore my routing looks like this:
const routes: Routes = [
{
path: '',
…

DingDong
- 367
- 3
- 12
- 22
0
votes
0 answers
AngularJS, UI-Router, Components, TypeScript
i've tried to create a simple angular1 component with the ui-router but it seems I cannot get it to render and I have 0 error in console...
Here is the code:
Config.ts
module app {
export class Config {
constructor(
…

Vince
- 1,279
- 2
- 20
- 40
0
votes
0 answers
Change browser title on route change in angular 1.5 component router
I am using angular 1.5 component router. I need to be able to change the title shown on the browser tab whenever there is a route change.
I have gone through the component router docs and googled it to many a websites but without any luck. The only…

Bharat Gupta
- 2,628
- 1
- 19
- 27
0
votes
1 answer
AngularJS: Component controller not loaded when routing with ngRoute
I am an AngularJS beginner. I have the following code:
A component defined by the following js file:
angular.module('EasyDocsUBBApp')
.component('loginTag', {
templateUrl: 'login-tag/login-tag.html',
controller: function () {
…

Lucian Bredean
- 803
- 1
- 10
- 21