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

Clarification of tagName #684

Open
tibraev opened this issue Oct 5, 2015 · 0 comments
Open

Clarification of tagName #684

tibraev opened this issue Oct 5, 2015 · 0 comments

Comments

@tibraev
Copy link

tibraev commented Oct 5, 2015

Fundamentals -> Client-Side MVC - Backbone Style

TodoView is defined by extending Backbone.View and is instantiated with an associated Model. In our example, the render() method uses a template to construct the HTML for the Todo item which is placed inside an li element. Each call to render() will replace the content of the li element using the current Model data.

I ran example from book and I didn't see any <li> tag inside page sourse.
Could you please explain why we need tagName: 'li' if there's no any <li> tag.

2015-10-06_001939

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