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

Very interesting tool! #1

Open
martinfjohansen opened this issue Feb 12, 2018 · 0 comments
Open

Very interesting tool! #1

martinfjohansen opened this issue Feb 12, 2018 · 0 comments

Comments

@martinfjohansen
Copy link

martinfjohansen commented Feb 12, 2018

Hi Dan, I am currently experimenting with a front-end architecture for a new site I am building. Your tool fits very nicely into what I want to build. What I have currently is

  • ES2015-modules
  • Handlebars template engine
  • TypeScript
  • IntraHTML

I did an experiment with a simple list:

<ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li></ul>

Using this template

<ul> {{#each list}} <li>{{this}}</li> {{/each}} </ul>

Using this model:

list: [1, 2, 3, 4, 5]

When I put something at the end of the list, for example 6, and rerender the template, I get an additional <li>6</li> of course.

Then, IntraHTML updates all the elements. If I add 6 again, IntraHTML updates the first 6 again, keeping the last 6 at the end. I checked this in Chrome. I also set debugging to true, and the list of changes reported by IntraHTML was consistent with what Chrome reported.

Could you see if you could fix this? I can send you the example I created if you want.

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

No branches or pull requests

1 participant