JSFiddle - React, Tailwind, and code Playground
by spechackers
HTML
<body ng-app="myApp" ng-controller="TestController">
{{log()}}
</body>
JavaScript
var myApp = angular.module("myApp", []);
myApp.config(function($provide){
$provide.provider("logService", function(){
this.$get = function(){
console.log("Hi from Vinoth");
}
});
});
myApp.controller("TestController", ["$scope", "logService", function($scope, logService){
$scope.log = logService;
}]);