JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="myApp">
    <div ng-controller="ListLogsCtrl">
        Hello {{ w }}, these are my logs:
        {{ logs }}
    </div>
</div>

JavaScript

var ListLogsModule = angular.module("myApp", []);

ListLogsModule.factory('ListLogsSrv', function ($http) {
    // first define the service (you're using a factory)
    var getData = function() {
        return "hey";//items;
    };
    // then return it. offer a public method "getData" that uses your internal getData()
    return {
        getData : getData
    }
});

// The error is seen in FireFox and happens in the controller code:
ListLogsModule.controller("ListLogsCtrl", function ($scope, ListLogsSrv) {
    $scope.w = "world";
    $scope.logs = ListLogsSrv.getData(); 
});