GithubHelp home page GithubHelp logo

Comments (3)

christopherthielen avatar christopherthielen commented on April 17, 2024

Am I missing any state param configuration for query params?

Nope, the URL with the param declared should be enough. I'll see if I can reproduce.

from react.

christopherthielen avatar christopherthielen commented on April 17, 2024

if you clone the ui-router-react repository, there is a simple example app. The sample app has a home state with a query parameter:

let home = { name: 'home', component: Home, url: '/home?foo' };

I added <h1>foo: {this.props.resolves.$stateParams.foo}</h1> to the Home component. Then ran the app (npm run dev) and typed in the url /home?foo=bar. The param value shows up in the component.

screen shot 2016-12-15 at 11 09 15 am

screen shot 2016-12-15 at 11 09 27 am

from react.

eddiemonge avatar eddiemonge commented on April 17, 2024

As this issue is almost 2 years old, it is being closed. If you feel like the problem reported is still valid, please add a comment saying it is still affecting you. We will reevaluate it and if it is valid we will reopen it.

Thank you for supporting and contributing to the project.

from react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.