A hash of components to be made available to the Vue instance.
t { assert(VUEInstance.components("a","b").components == ["a":"b"]); assert(VUEInstance.components(["a":"b"]).components == ["a":"b"]); assert(VUEInstance.components(["a":"b"]).components("x","y").components == ["a":"b", "x":"y"]); /// TODO assert(VUEInstance.components("a","b").components("x","y").removeComponents("a").components == ["x":"y"]); assert(VUEInstance.components(["a":"b"]).components("a","y").components == ["a":"y"]); assert(VUEInstance.components("a","b").clearComponents.components == null)
filter - A hash of filters to be made available to the Vue instance.
t { assert(VUEInstance.filters("a","b").filters == ["a":"b"]); assert(VUEInstance.filters(["a":"b"]).filters == ["a":"b"]); assert(VUEInstance.filters(["a":"b"]).filters("x","y").filters == ["a":"b", "x":"y"]); /// TODO: assert(VUEInstance.filters("a","b").filters("x","y").removeFilters("a").filters == ["x":"y"]); assert(VUEInstance.filters(["a":"b"]).filters("a","y").filters == ["a":"y"]); assert(VUEInstance.filters("a","b").clearFilters.filters == null)
hooks - All lifecycle hooks: beforeCreate, created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, destroyed, errorCaptured
t { assert(VUEInstance.hooks("a","b").hooks == ["a":"b"]); assert(VUEInstance.hooks(["a":"b"]).hooks == ["a":"b"]); assert(VUEInstance.hooks(["a":"b"]).hooks("x","y").hooks == ["a":"b", "x":"y"]); /// TODO assert(VUEInstance.hooks("a","b").hooks("x","y").removeHooks("a").hooks == ["x":"y"]); assert(VUEInstance.hooks(["a":"b"]).hooks("a","y").hooks == ["a":"y"]); assert(VUEInstance.hooks("a","b").clearHooks.hooks == null)
plugins - Plugins usually add global-level functionality to Vue.
t { assert(VUEInstance.plugins("a").plugins == ["a"]); assert(VUEInstance.plugins(["a","b"]).plugins == ["a","b"]); assert(VUEInstance.plugins("a").plugins("x").plugins == ["a", "x"]); //// TODO assert(VUEInstance.plugins("a").plugins("x").removePlugins("a").plugins == ["x"]); assert(VUEInstance.plugins(["a","b"]).clearPlugins.plugins == null)