Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demos wanted #8

Open
davestewart opened this issue Dec 23, 2016 · 4 comments
Open

Demos wanted #8

davestewart opened this issue Dec 23, 2016 · 4 comments

Comments

@davestewart
Copy link
Owner

davestewart commented Dec 23, 2016

Would anyone like to build versions of the form demos for other frameworks?

@davestewart davestewart changed the title Angular demo Demos wanted Dec 23, 2016
@ltotsas
Copy link

ltotsas commented Jul 31, 2018

what about an angular demo? this :data-state tag is killing me. There is no such tag.

@davestewart
Copy link
Owner Author

Hey @ltotsas - can you elaborate? I'm not sure what you mean!

@ltotsas
Copy link

ltotsas commented Jul 31, 2018

Of course and i am sorry if i wasn't that detailed. I am using Ionic and i am unable to assign the current state to the DOM. From your VUE examples <section id="states" :data-state="state.name" :class="{paused:state.paused}"> ,but angular does not have this :data-state tag. I am trying to replicate your "branching" example but i can only instantiate the state-machine.

{name: "green", index: 0, paused: false, is: {…}, actions: {…}, …}

StateMachine {transitions: TransitionMap, handlers: HandlerMap, state: "green", config: Config}

@davestewart
Copy link
Owner Author

davestewart commented Jul 31, 2018

Ah, : is just a Vue binding, the same as v-bind.

How does Angular do binding?

You might be better off looking at the jQuery example, which uses the jQuery helper:

Or you could try the ObjectHelper:

Apologies, it's so long since I looked at this code, it's hard to remember what does what!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants