"use strict"; (function () { 'use strict'; angular.module("myitsmApp") .controller("MyCustomController", function($scope, $controller) { var vm = this; vm.alertHallo = alertHallo; function alertHallo() { alert('HALLLOOO'); } angular.extend(vm, $controller('MainController', {$scope: $scope})); var x = 0; }); })();