ng-change is throwing error [$compile:ctreq]
来源:互联网 发布:c5 aircross 知乎 编辑:程序博客网 时间:2024/06/17 08:02
ng-change is throwing error [$compile:ctreq]
up vote6down votefavorite
3
I am using angularjs 1.2.14, the code is working fine without ng-change. As soon as i add the code for ng-change in checkbox. it throws the error.
Error: [$compile:ctreq] http://errors.angularjs.org/1.2.14/$compile/ctreq?p0=ngModel&p1=ngChangeat Error (native).....
Can anyone please help? Thanks in advance.
javascript jquery angularjs
add a comment
2 Answers
activeoldestvotes
up vote14down vote
to use ng-change
in your element you should also specify ng-model
which i had missed. Thanks for your time.
add a comment
up vote2down vote
http://plnkr.co/edit/oF8o6kU7zBDaJg4ts6TU?p=preview
See working sample.
ng-change requires ng-model, without it will not work
0 0
- ng-change is throwing error [$compile:ctreq]
- ng-change
- OSX 10.9 Compile error: garbage collection is no longer supported
- ERROR: glib-2.22 gthread-2.0 is required to compile QEMU
- Compile Error
- Visual Studio Code compile error --launch: program 'launch: launch.json must be configured. Change '
- AngularJS Error: [ng:areq] loginController is not a function
- angularJS中的ng-click和ng-change
- AngularJs ng-change事件/指令
- angular ng-change $event undefined
- _IsPtrType -- STL type checking on compile-time -- Substitution Failure Is Not An Error (SFINAE)
- Java Compile Error: The code of method is exceeding the 65535 bytes limit
- compile kernel error-- size of unnamed array is negative无名数组的大小为负
- mvn compile error : try-with-resources is not supported in -source 1.5
- configure: error: Your operating system's lex is insufficient to compile libpcap.
- compile minicom error
- Kerberos 5 compile error
- eclipse java compile error
- 21-IO流-11-IO流(字符流-缓冲区-解释)
- java基础--StringBuffer pk String
- iOS开发工具——统计Crash的工具Crashlytics
- The Suspects(POJ--1611
- myeclipse ctrl +D 删除当前行失效解决方法
- ng-change is throwing error [$compile:ctreq]
- Android应用评分
- 21-IO流-12-IO流(字符流-缓冲区-BufferedWriter)
- 错误笔记150811--引用问题
- android Material Design 随手记
- Algorithms-94.Binary Tree Inorder Traversal
- 21-IO流-13-IO流(字符流-缓冲区-BufferedReader)
- Java static修饰属性(类变量)、static修饰方法(类方法)
- ACM Computer Factory
ng-change
is broken in 1.2.14 (which is clearly not the case), it is quite remarkable that you want us to find the error in your code without providing the code ! – ExpertSystem Mar 14 '14 at 11:28