transitions

transitions Type: Object Details: A hash of transitions to be made available to the Vue instance. See also: Transitions

limitBy

limitBy Limited to: directives that expect Array values, e.g. v-for Arguments: {Number} limit {Number} [offset] Usage: Limit the array to the first N items, as specified by the argument. An optional second argument can be provided to set a starting offset. <!-- only display first 10 items --> <div v-for="item in items | limitBy 10"></div> <!-- display items 5 to 15 --> <div v-for="item in items | limitBy 10 5"></div>

Vue.directive()

Vue.directive( id, [definition] ) Arguments: {String} id {Function | Object} [definition] Usage: Register or retrieve a global directive. // register Vue.directive('my-directive', { bind: function () {}, update: function () {}, unbind: function () {} }) // register (simple function directive) Vue.directive('my-directive', function () { // this will be called as `update` }) // getter, return the directive definition if registered var myDirective = Vue.directive('my-directive') See

slot

slot Attributes: name Usage: <slot> elements serve as content distribution outlets in component templates. The slot element itself will be replaced. A slot with the name attribute is called a named slot. A named slot will distribute content with a slot attribute that matches its name. For detailed usage, see the guide section linked below. See also: Content Distribution with Slots

parent

parent Type: Vue instance Details: Specify the parent instance for the instance to be created. Establishes a parent-child relationship between the two. The parent will be accessible as this.$parent for the child, and the child will be pushed into the parent’s $children array. See also: Parent-Child Communication

vm.$get()

vm.$get( expression ) Arguments: {String} expression Usage: Retrieve a value from the Vue instance given an expression. Expressions that throw errors will be suppressed and return undefined. Example: var vm = new Vue({ data: { a: { b: 1 } } }) vm.$get('a.b') // -> 1 vm.$get('a.b + 1') // -> 2

vm.$broadcast()

vm.$broadcast( event, […args] ) Arguments: {String} event [...args] Usage: Broadcast an event that propagates downward to all descendants of the current instance. Since the descendants expand into multiple sub-trees, the event propagation will follow many different “paths”. The propagation for each path will stop when a listener callback is fired along that path, unless the callback returns true. Example: var parent = new Vue() // child1 and child2 are siblings var child1 = new Vue({ paren

watch

watch Type: Object Details: An object where keys are expressions to watch and values are the corresponding callbacks. The value can also be a string of a method name, or an Object that contains additional options. The Vue instance will call $watch() for each entry in the object at instantiation. Example: var vm = new Vue({ data: { a: 1 }, watch: { 'a': function (val, oldVal) { console.log('new: %s, old: %s', val, oldVal) }, // string method name 'b': 'someMe

init

init Type: Function Details: Called synchronously after the instance has just been initialized, before data observation and event / watcher setup. See also: Lifecycle Diagram

vm.$mount()

vm.$mount( [elementOrSelector] ) Arguments: {Element | String} [elementOrSelector] Returns: vm - the instance itself Usage: If a Vue instance didn’t receive the el option at instantiation, it will be in “unmounted” state, without an associated DOM element or fragment. vm.$mount() can be used to manually start the mounting/compilation of an unmounted Vue instance. If no argument is provided, the template will be created as an out-of-document fragment, and you will have to use other DOM inst