{"action":"created","issue":{"url":"https://api.github.com/repos/yyx990803/vue/issues/1164","labels_url":"https://api.github.com/repos/yyx990803/vue/issues/1164/labels{/name}","comments_url":"https://api.github.com/repos/yyx990803/vue/issues/1164/comments","events_url":"https://api.github.com/repos/yyx990803/vue/issues/1164/events","html_url":"https://github.com/yyx990803/vue/issues/1164","id":101243574,"number":1164,"title":"Value in mustache not dynamically updated in custom directives?","user":{"login":"Voyga","id":9929523,"avatar_url":"https://avatars.githubusercontent.com/u/9929523?v=3","gravatar_id":"","url":"https://api.github.com/users/Voyga","html_url":"https://github.com/Voyga","followers_url":"https://api.github.com/users/Voyga/followers","following_url":"https://api.github.com/users/Voyga/following{/other_user}","gists_url":"https://api.github.com/users/Voyga/gists{/gist_id}","starred_url":"https://api.github.com/users/Voyga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Voyga/subscriptions","organizations_url":"https://api.github.com/users/Voyga/orgs","repos_url":"https://api.github.com/users/Voyga/repos","events_url":"https://api.github.com/users/Voyga/events{/privacy}","received_events_url":"https://api.github.com/users/Voyga/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-16T08:47:28Z","updated_at":"2015-08-17T00:14:09Z","closed_at":"2015-08-16T18:52:23Z","body":"```html\r\n<div v-repeat=\"value in array\" v-press=\"{{$index}}\"></div>\r\n```\r\n\r\n```javascript\r\npress: {\r\n    isLiteral: true,\r\n    update: function() {\r\n        this._isDynamicLiteral = true;\r\n        App.index = this.expression\r\n    }\r\n}\r\n```\r\nAt first I can get the right $index value. But if I delete a value in the array, the `update` function is executed, but `this.expression` still passes the original $index value before changes. How can I get the right $index if something changes in the array?"},"comment":{"url":"https://api.github.com/repos/yyx990803/vue/issues/comments/131644097","html_url":"https://github.com/yyx990803/vue/issues/1164#issuecomment-131644097","issue_url":"https://api.github.com/repos/yyx990803/vue/issues/1164","id":131644097,"user":{"login":"mark-hahn","id":811455,"avatar_url":"https://avatars.githubusercontent.com/u/811455?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-hahn","html_url":"https://github.com/mark-hahn","followers_url":"https://api.github.com/users/mark-hahn/followers","following_url":"https://api.github.com/users/mark-hahn/following{/other_user}","gists_url":"https://api.github.com/users/mark-hahn/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-hahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-hahn/subscriptions","organizations_url":"https://api.github.com/users/mark-hahn/orgs","repos_url":"https://api.github.com/users/mark-hahn/repos","events_url":"https://api.github.com/users/mark-hahn/events{/privacy}","received_events_url":"https://api.github.com/users/mark-hahn/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T00:14:09Z","updated_at":"2015-08-17T00:14:09Z","body":"> . I misunderstood the doc.\n\nI have written 2 apps in vue (which is great btw) but I still get confused\nas to when the mustache is needed.  Not needing them in some situations\neven when replacement is happening is confusing.\n\nIt would be cool if they were allowed in all places where things were\nevaluated.  The evaluation parser could strip them out.\n\n\nOn Sun, Aug 16, 2015 at 4:16 PM, Tiga Wu <notifications@github.com> wrote:\n\n> Thanks. I misunderstood the doc.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/yyx990803/vue/issues/1164#issuecomment-131638434>.\n>\n"}}