나는 사용하고있다 :
JSPM, SystemJS 및 Angular
일련의 오류없이 파일을 더 적게 가져올 수 없습니다.
Error: [$parse:syntax] Syntax Error: Token 'text' is an unexpected token at column 8 of the expression [status text] starting at [text].
http://errors.angularjs.org/1.5.0/$parse/syntax?p0=text&p1=is%20an%20unexpected%20token&p2=8&p3=status%20text&p4=text
at eval (http://localhost:8002/jspm_packages/npm/[email protected]/angular.js:68:12)
at Object.AST.throwError (http://localhost:8002/jspm_packages/npm/[email protected]/angular.js:13816:11)
at Object.AST.ast (http://localhost:8002/jspm_packages/npm/[email protected]/angular.js:13586:12)
at Object.ASTCompiler.compile (http://localhost:8002/jspm_packages/npm/[email protected]/angular.js:14040:31)
at Parser.parse (http://localhost:8002/jspm_packages/npm/[email protected]/angular.js:14927:29)
at $parse (http://localhost:8002/jspm_packages/npm/[email protected]/angular.js:15035:39)
at $interpolate (http://localhost:8002/jspm_packages/npm/[email protected]/angular.js:11770:25)
at addTextInterpolateDirective (http://localhost:8002/jspm_packages/npm/[email protected]/angular.js:9282:27)
at collectDirectives (http://localhost:8002/jspm_packages/npm/[email protected]/angular.js:8350:11)
at compileNodes (http://localhost:8002/jspm_packages/npm/[email protected]/angular.js:8145:22) undefined
나는 온라인에서 많은 것을 읽었고 어떤 사람들에게는 그것이 파일의 인코딩이라는 것을 알았습니다. 그러나 나는 운없이 아래의 것을 포함하여 여러 가지를 시도했습니다.
@charset "utf-8";
/* CSS Document */
왜 그런 일이 일어나고 있습니까? 제 코드에 도움이 될만한 부분이 있으면 알려주세요.
편집하다:
감사!
문제는 댓글이었다 !! 이유는 모르겠지만 Angular는 주석을 구문 분석하려고했습니다.
/*
---------------------------------------
A status badge.
---------------------------------------
Usage:
<span class="badge badge-status">
{{status text}}
</div>
---------------------------------------
*/
댓글을 제거하여 해결했습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다