这有什么错"移动(-1)QUOT;作为AngularJS前pression? [英] Is there anything wrong with "move(-1)" as an AngularJS expression?

查看:189
本文介绍了这有什么错"移动(-1)QUOT;作为AngularJS前pression?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到这个错误: [$解析:ueoe]的前pression意外结束:移动(

从这个code:<按钮式=按钮NG点击=移动(-1)的tabindex = - 1>

是不是有什么语法错误的移动(-1)在AngularJS?

附注:我似乎有错误突然出现的任何地方我都在角前pression一个减号。例如:&LT;跨度数据-NG-点击=命令(' - 名')数据-NG-CLASS ={活跃:列=='-name'}&GT; 抛出一个不同的错误:词法错误:未结束的报价在列6-7 ['〕中前pression [顺序('] <。 / p>

这一切我读过,这似乎并不像语法错误给我。有没有别的东西会在这里?


解决方案

我有同样的事情。检查以确保它并不是引起问题的Chrome扩展程序之一。我禁用Batarang专门和错误走了。

I'm getting this error: [$parse:ueoe] Unexpected end of expression: move(

From this code: <button type="button" ng-click="move(-1)" tabindex="-1">

Is there something syntactically wrong with move(-1) in AngularJS?

Side note: I seem to have errors cropping up anywhere I have a minus sign in an Angular expression. For example: <span data-ng-click=" order('-name') " data-ng-class="{active: column == '-name'}"> is throwing a different error: Lexer Error: Unterminated quote at columns 6-7 ['] in expression [order('].

From everything I've read, these don't seem like syntax errors to me. Is there something else going on here?

解决方案

I had the same thing. Check to make sure that it isn't one of your Chrome extensions that is causing the problem. I disabled Batarang specifically and the error went away.

这篇关于这有什么错&QUOT;移动(-1)QUOT;作为AngularJS前pression?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆