Coder Social home page Coder Social logo

tehshrike / state-router-example Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 8.0 3.37 MB

Examples of abstract-state-router usage with various templating/rendering libraries

Home Page: http://tehshrike.github.io/state-router-example/

HTML 43.99% JavaScript 55.65% CSS 0.36%

state-router-example's Introduction

Information about the abstract-state-router, and some example implementations.

Check it out!

To run it yourself locally, check it out into some directory being served up by a static http server, maybe Apache or something:

git clone [email protected]:tehshrike/state-router-example.git
cd state-router-example
npm install

At this point you can npm run build to build a deployable version of all versions, minified and everything, or you can run one of these if you want to play with the code:

  • npm run watch:riot
  • npm run watch:ractive
  • npm run watch:ractive-redux
  • npm run watch:virtualdom
  • npm run watch:ko
  • npm run watch:svelte

state-router-example's People

Contributors

artskydj avatar crissdev avatar saibotsivad avatar tehshrike avatar webdesus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

state-router-example's Issues

Need some documentation on how to run

I assume it's just

git clone REPO
cd REPO
npm install .
npm build

maybe? Have to have browserify installed with -g probably? Maybe watchify also?

I was having trouble with npm this morning, so I couldn't verify that flow for sure, but it looks correct.

Race condition in login.tag?

I am trying to follow your example and it seems to me that the opts.login is available in login.tag only due to luck. ie. if in login tag you called opts.login right away in <script> it would tell you that this function is undefined.

Related to this: riot/riot#1299

I am trying to find a decent way to inject services (in Angular they would be services, in Riot they are just resource abstractions; let's just say modules) into custom tags. So for example I have a tag, which is a dropdown that lists all the countries. The countries are in a NPM module. I need a way to make them available in the country-selecter tag's <script> section. Or is this an anti-pattern? Sorry for going off-topic, but it's really hard to find any information on RiotJS best practices...

Getting a 404 for rsvp.js.map

Under the assumption that the build step is correct in #1

When I launch using python -m SimpleHTTPServer 8000 then the console.log says:

Initializing dummy data
GET http://localhost:8000/rsvp.js.map 404 (File not found)

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.