0
AddTaskComponentController
に入力してconsole.log('TESTE456214651')
と表示してみませんか?私はgruntを使っているので、コードは同じアーカイブにあります。Angular.js - コントローラ内に入力しない
(function() {
'use strict';
angular.module('dailyTasksApp', []).config(config)
function config($routeProvider, $locationProvider) {
$locationProvider.html5Mode({
enabled: true,
requireBase: false
});
$routeProvider.when('/', {
templateUrl: 'modules/construction-employees-daily-tasks/app/app.component.html'
}).when('/adicionar-tarefa', {
templateUrl: 'modules/construction-employees-daily-tasks/add-task-component/add-task.component.html'
})
}
})();
(function(){
'use strict';
angular.module('dailyTasksApp').component('addTaskComponent', {
templateUrl: '/modules/construction-employees-daily-tasks/add-task-component/add-task.component.html',
controller: AddTaskComponentController
})
function AddTaskComponentController() {
console.log("TESTE456214651");
}
})();
この機能を呼び出すことはありません。それは宣言されただけです。 – JustinJmnz