Skip to content

Add support for multiple namespace in Views #724

@xavierfoucrier

Description

@xavierfoucrier

The current syntax for View doesn't support more that a single namespace.

It would be nice to allow multiple namespaces in order to simplify code that run for a specific slot of Views, like:

barba.init({
  views: [{
    namespace: [
      'index',
      'contact'
    ],
    beforeLeave(data) {
      // do something before leaving `index` or `contact` namespaces
    }
  }]
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    @barba/core@barba/core pluginfeaturefeature request to implement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions