Skip to content

best practice for live initiation #105

Open
@Ciki

Description

@Ciki

what is the best practice to automatically init all a.ajax links even those dynamically loaded?

should I write custom init function, sth like

$.nette.ext('init', {
    load: function (rh) {
        $('body').off('click.nette', this.linkSelector, rh).on('click.nette', this.linkSelector, rh);
// ...
}
}

or manually call $.nette.load() or sth else?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions