Injector: [$Injector: UNPR]
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<script type="text/javascript" src="js/angular.min.1.3.6.js"></script>
</head>
<body ng-app='myapp1'>
<cus></cus>
</body>
<script type="text/javascript">
var app = angular.module('myapp1', []);
//Throw this exception, the problem is in this piece of code: here the function's argument is passed in more than $scope, and after removing it, the exception is resolved
// Running this exception means there is a problem with the injected content, and when you encounter a similar exception, check if the injected content is correct!
app.directive("cus",function($scope){
return function(scope,element,attrs){
console.log('返回element=='+element);
}
});
</script>
</html>
Read More:
- How to Solve Docker Error: elasticsearch exception: type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
- Springboot integrates redis factory method ‘redisconnectionfactory’ threw exception; nested exception is
- ERROR: Exception when publishing, exception message [Exec timed out or was interrupted after 120,009 ms]
- Jenkins error: exception message 137
- [Solved] prometheus Exception Exit Error: opening storage failed
- NestedServletException, Handler dispatch failed; nested exception is java.lang.StackOverflowError [Solved]
- C++ Error: terminating with uncaught exception of type std::out_of_range: vector Abort trap: 6
- DB::Exception: test: Authentication failed: [How to Solve]
- Quartz: ERROR threw an unhandled Exception [How to Solve]
- Hadoop Error: hdfs.DFSClient: Exception in createBlockOutputStream
- [Solved] Error: exception: java.lang.reflect.InvocationTargetException: null
- GO Exception Runnerw.exe: CreateProcess failed with error 21
- How to Solve ES error: “illegal_argument_exception”
- [Solved] Exception while doing past iteration backup
- [Solved] liquibase.exception.ValidationFailedException: Validation Failed
- [Solved] Tronado: Exception: Cannot redirect after headers have been written
- [Solved] Unity Package Error: FAILURE: Build failed with an exception.
- [Solved] Error: Message failed: 554 5.2.0 STOREDRV.Submission.Exception:OutboundSpamException;
- ElasticSearch Create Index Error: mapper_parsing_exception Root mapping definition has unsupported parameters
- com.netflix.zuul.exception.zuulexception Timeout (Fixed)