Angular directive's link function not being called
问题 I've got a problem with AngularJS directive link function. It's not beeing called and it doesn't throw any error. Also the template in directive's return is not rendering :( Where should be problem? Thank you for answers! angular.module('sampleApp.game').directive('gameCanvas', function($injector) { console.log('Directive is working'); // this works, function linkFn(scope, ele, attrs) { console.log('Link function doesnt working :('); // but this not :( }; return { scope: {}, template: '<div