Skip to content

URL for views as a flat attribute #76

@tracend

Description

@tracend

The url of an html fragment can be set through the options of the view, but there's no reason why it shouldn't be able to be set directly, as part of the extend method:

var view = APP.View.extend({
    options: {}, // this is where 'url' has to live currently...
    url: "assets/html/fragment.html"
});

This follows the same convention of Model/Collection in regular Backbone.js

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions