Skip to content

BV does not follow Vue global name/function plugin convention #3849

Closed
@Andrei-Pozolotin

Description

@Andrei-Pozolotin

BV exposes itself:

  1. as window.bootstrapVue, not as window.BootstrapVue

compare global.VueRouter = factory()
https://github.com/vuejs/vue-router/blob/dev/dist/vue-router.js#L9

vs global.bootstrapVue = factory()
https://unpkg.com/browse/bootstrap-vue@2.0.0-rc.27/dist/bootstrap-vue.js

  1. another inconsistency: function vs object
VueRouter
ƒ VueRouter (options) {
  if ( options === void 0 ) options = {};
  this.app = null;
  this.apps = [];
  this.options = options;
  this.beforeHooks = [];
  this.resolveHooks = [];
  this.afterHooks = …
bootstrapVue
{install: ƒ, setConfig: ƒ}
  1. that brings in needless confusion :-)

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