AngularJs function not found
<p>When I try to run this:   </p>

<pre><code> (function() {
         'use strict';
        // 1. Module definieren
        angular.module('myApp')
        .controller('homeController',homeController);

        homeController.$inject = ['employeeFactory'];
        function homeController(employeeFactory) {
            var vm = this;
            vm.getEmployees = function() {
                employeeFactory.getEmployees()
                        .then(function(employee) {
                            console.log(employee);
                            vm.employees = employee.result;
                        });
            }; 

        }
    })();
</code></pre>

<p>I receive the following error in my console:</p>

<pre><code>angular.js:13307 TypeError: employeeFactory.getEmployees is not a function
    at homeController.vm.getEmployees (homeController.js:11)
    at fn (eval at &lt;anonymous&gt; (angular.js:14157), &lt;anonymous&gt;:4:280)
    at expensiveCheckFn (angular.js:15146)
    at callback (angular.js:24614)
    at Scope.$eval (angular.js:16888)
    at Scope.$apply (angular.js:16988)
    at HTMLButtonElement.&lt;anonymous&gt; (angular.js:24619)
    at defaultHandlerWrapper (angular.js:3394)
    at HTMLButtonElement.eventHandler (angular.js:3382)
</code></pre>

<p>What am I doing wrong. </p>