Javascript AngularJS[$parse:syntax]在锚点中设置值

Javascript AngularJS[$parse:syntax]在锚点中设置值,javascript,angularjs,Javascript,Angularjs,我正在尝试在我的作用域内分配一个变量,并将{post.id}分配为值,然后运行一个名为editPost的函数,该函数将接受$scope.editID的值,并将其作为参数发送到一个页面,然后将其返回给我。现在我得到一个错误: Error: [$parse:syntax] http://errors.angularjs.org/1.2.17/$parse/syntax?p0=post.id&p1=is%20unexpected%2C%20expecting%20%5B%3A%5D&p

我正在尝试在我的作用域内分配一个变量,并将{post.id}分配为值,然后运行一个名为editPost的函数,该函数将接受$scope.editID的值,并将其作为参数发送到一个页面,然后将其返回给我。现在我得到一个错误:

Error: [$parse:syntax] http://errors.angularjs.org/1.2.17/$parse/syntax?p0=post.id&p1=is%20unexpected%2C%20expecting%20%5B%3A%5D&p2=10&p3=editID%3D%7B%7Bpost.id%7D%7D%3B%20editPost()&p4=post.id%7D%7D%3B%20editPost()
以下是我在索引文件中的代码:

<div class="postDiv" ng-repeat="post in blog.posts" data-id="{{post.id}}">
    <a data-toggle="modal" data-target="#editPost" ng-click="editID={{post.id}}; editPost()">
        <img class="edit" src="http://upload.wikimedia.org/wikipedia/commons/6/68/Pencil.svg">
    </a>
</div>

为什么我会出现这个错误,如何修复?我假设问题在于设置editID={{post.id},但我不确定原因。

Change editID={{post.id};。。。编辑id=post.id;。。。。。在这种情况下,不需要给出表达式语法

Change editID={{post.id};。。。到editId=post.id;。。。。在这种情况下,你不需要给出表达式语法。是的,在你评论lol之前就已经弄明白了。回答这个问题,我会标记它。
$scope.editPost = function() {
            console.log("ID: "+$scope.editID);
            $http({
                method  : 'POST',
                url     : 'process/getEdit.php',
                data    : $.param($scope.editID),  // pass in data as strings
                headers: {'Content-Type' : 'application/x-www-form-urlencoded; charset=UTF-8'}
            })
            .success(function(data) {
                console.log(data);
            });
};