I am using the same component for three different routes:  <Router>     <Route path="/home" component={Home} />     <Route path="/users" component={Home} />     <Route path="/widgets" component={Home} /&...
I'm having a tough time getting this to work. I have a string like:  something/([0-9])/([a-z])   And I need regex or a method of getting each match between the parentheses and return an array of matches like:  [   [0-9],   [a-z] ]   The regex I...
I'm using ui-router for state management but I think I'm having trouble with my .htaccess rewrite rules. All my states worked when using /#/account style urls. Now I've enabled html5 mode but my app isn't rendering as it was before. I...
Ok, so I've made a SPA using React and React-Router and have pushed it to github pages, but none of the routes I have written work when I refresh or click back in my browser. I had the same problem when I was serving the page locally, but then fo...
I have 2 html pages, welcome.html and login.html both of which are "inserted" into index.html dependending on the URL via an ngview attribute and router provider, as part of my AngularJS app.  An example of this can be found on the AngularJS...
I made some Angular routes as shown in the code bellow.  app.config(function($routeProvider, $locationProvider, $provide) {     $routeProvider     .when('/', {          templateUrl: 'home.html',          controller: 'AppCtrl'...
I've asked a question previously in which I wanted to bind a collection residing in the controller to the list scenario view, however, I've added details and edit templates and views to my structure producing a couple of extra sub-routes:  ro...
I am new to AngularJS, so forgive me if this is obvious, but I am looking for someone who can answer this tricky question.  I am implementing an application, and need to pass some parameters to a particular view to display details about a book.   Bas...
I am trying to use React-Router V4 to add routes to my app, but it is not working at all. Basically, I'm trying to programatically change the route with history.push, which is updating the browser URL, but not changing anything inside the actual...
I have route configuration set up via @NgModule. And I have a service that identifies what parts of the application should be shown for the user depending on certain conditions. I need to call that service and setup the routes according to the return...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.