We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b70bffe commit 6858f5cCopy full SHA for 6858f5c
src/api/data.js
@@ -121,7 +121,7 @@ exports.$interpolate = function (text) {
121
var vm = this
122
if (tokens) {
123
if (tokens.length === 1) {
124
- return vm.$eval(tokens[0].value)
+ return vm.$eval(tokens[0].value) + ''
125
} else {
126
return tokens.map(function (token) {
127
return token.tag
test/unit/specs/api/data_spec.js
@@ -151,6 +151,7 @@ describe('Data API', function () {
151
152
it('$interpolate', function () {
153
expect(vm.$interpolate('abc')).toBe('abc')
154
+ expect(vm.$interpolate('{{a}}')).toBe('1')
155
expect(vm.$interpolate('{{a}} and {{a + b.c | double}}')).toBe('1 and 6')
156
})
157
0 commit comments