GithubHelp home page GithubHelp logo

Enhanced route syntax about ui-router HOT 5 CLOSED

lrlopez avatar lrlopez commented on August 24, 2024
Enhanced route syntax

from ui-router.

Comments (5)

gregwebs avatar gregwebs commented on August 24, 2024

rather than type definitions, we can allow arbitrary parsers. Instead of 'foo/:int' we can have ['foo', parseInt]. This unloads a bunch of work from our shoulders, and a DSL that uses :int can always be added on top in the future.

from ui-router.

jeme avatar jeme commented on August 24, 2024

@gregwebs I don't quite know how @xealot implemented Improved Angular routing in a backwards compatible way but as I understand werkzeug routing, that is actually what it provides.

e.g. <path:bar> refers to a parser named path.

http://werkzeug.pocoo.org/docs/routing/#custom-converters

Someone noted that they didn't like the syntax, ofc. I wouldn't mind a more familiar syntax. But further than that I have no for or against the syntax as it would only be founded in what I was use to and not objectivity.

from ui-router.

timkindberg avatar timkindberg commented on August 24, 2024

Closing because we are moving forward with @ksperling implementation, if you need to bring any issues from this discussion over to the new implementation please make a new issue. This thread seems to have some interesting ideas...

from ui-router.

pranaydutta89 avatar pranaydutta89 commented on August 24, 2024

👍

from ui-router.

christopherthielen avatar christopherthielen commented on August 24, 2024

wat

from ui-router.

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.