@@ -149,6 +149,13 @@ if (process.env.NODE_ENV !== 'production') {
'Computed property "' + name + '": computed properties are not cached by ' +
'default in 1.0.0. You only need to enable cache for particularly expensive ones.'
)
+ },
+
+ BIND_IS: function () {
+ warn(
+ '<component is="{{view}}"> syntax will be depreacted in 1.0.0. Use ' +
+ '<component bind-is="view"> instead.'
+ )
}
@@ -16,6 +16,9 @@ exports.checkComponent = function (el, options) {
// dynamic syntax
var exp = el.getAttribute('is')
if (exp != null) {
+ if (process.env.NODE_ENV !== 'production' && /{{.*}}/.test(exp)) {
+ _.deprecation.BIND_IS()
+ }
el.removeAttribute('is')
} else {
exp = el.getAttribute('bind-is')