-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue.js 1.0 (Fix #235) #237
Conversation
|
@@ -35,11 +35,13 @@ | |||
<content-header meta="{{meta}}"></content-header> | |||
<!-- Notifications --> | |||
<div v-if="notifications.length > 0" class="notification-zone"> | |||
<alert-box v-repeat="notifications"></alert-box> | |||
<alert-box v-for="n in notifications" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should avoid single letter vars.
- Use proper binding syntax when needed - Deduplicate data and props - Fix some slots
- added some missing slots - process router parameters - deduplicate data and props - use proper binding syntax - fix array on empty models from schema
Now, I know what it means. Before you could write this to set properties: <my-component data-prop="value" /> It's not possible anymore. In our case, we simply make a binding on data-content, so we just write: <div :data-content="content"></div> |
Thanks, good to know :) |
49e3c37
to
a83c381
Compare
36fb416
to
183fa66
Compare
r+, LGTM! |
This pull-request migrate from vue.js 0.12 to vue.js 1.0.
To migrate to 1.0.0:
<div v-on="click: doThis">
to<div @click="doThis">
v-on
:<div v-on="click: doThis">
to<div @click="doThis">
v-attr
:<div v-attr="name: value">
to<div :name="value">
v-class
:<div v-class="myClass: true">
to<div :class="{myClass: true}">
v-repeat
changes tov-for
. Iterating without alias is deprecatedv-el="name"
becomesv-el:name
andvm.$$
becomesvm.$els
v-ref="name"
becomesv-ref:name
andvm.$
becomesvm.$refs
<div v-dirname="abc">
to<div v-dirname.literal="abc">
<component is="{{view}}"></component>
to<component v-bind:is="view"></component>
prop="{{expression
to:prop="expression
v-bind
=>:
andv-on
=>@
<content>
to<slot>
, etcorderBy
not in use)prefix
deprecated, etc:inherit: true
Vue.options.replace = false;
Quick reference for syntax binding