Angularjs1 exception error:[$injector:unpr]

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: