Skip to content

bind the model with backbone variable #301

@kdbusiness90

Description

@kdbusiness90

Hi All,

How do i bind the model with backbone variable like

var RepeatModal = Backbone.Model.extend({
     defaults: {
        "uRepeateverybyweek": true,
        "uRepeateverybyday": false,
        "uRepeaton": true,
        "uRepeatby": false
     }
 });

In Html:

 <% if(elements.attributes.uRepeateverybyweek == true) { %>
                <select id="uRepeateverybyweek" class="form-control">
                    <option>1</option>
                    <option>2</option>
                    <option>3</option>
                    <option>4</option>
                    <option>5</option>
                </select>
 <% } %>

elements.attributes.uRepeateverybyweek is not working ? with backbone.stickit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions