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...
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 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...
I am using the react-router plugin to setup my routes I want to provide two routes list/ and list/:id (pretty common) What I have and what's working is this:  <Routes>     <Route handler={App}>         <Route name="list"...
I'm adding a simple login screen to my app, but I'm not able to call Actions.home once the user is authenticated.  I have a button that when pressed, calls a function to connect to the server and get auth status, and when successful, I call A...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.