feat(runtime-core): implement RFC-0020
BREAKING CHANGE: data no longer supports object format (per RFC-0020)
This commit is contained in:
@@ -89,9 +89,9 @@ describe('compiler + runtime integration', () => {
|
||||
|
||||
it('should support using element innerHTML as template', () => {
|
||||
const app = createApp({
|
||||
data: {
|
||||
data: () => ({
|
||||
msg: 'hello'
|
||||
}
|
||||
})
|
||||
})
|
||||
const container = document.createElement('div')
|
||||
container.innerHTML = '{{msg}}'
|
||||
|
||||
Reference in New Issue
Block a user