I'm new to programming in html/JS/AngularJS. I'm trying to implement a simple angular component but i keep getting errors. I looked at other answers and can't find the solution why this simple implementation is creating the error in the console (the error is mentioned in title). please help. picture of console out put
var myApp = angular.module('RingShopApp', []);
function appctrlcontroller($scope) {
}
myApp.controller('appctrl', appctrlcontroller);
console.log("appctrl done");
myApp.component('ringtabs', {
template: "<p>sdfsdfsdfsdfsdfdf</p>",
// templateUrl: 'html/Directives/tabs.html',
controller: myApp.controller('appctrl')
});
console.log("ringtabs component");
<!DOCTYPE html>
<html >
<head>
</head>
<body ng-app="RingShopApp">
<ringtabs></ringtabs>
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.js'></script>
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular-animate.min.js'></script>
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular-route.min.js'></script>
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular-aria.min.js'></script>
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular-messages.min.js'></script>
<script src="js/index.js"></script>
</body>
</html>