Answer the question
In order to leave comments, you need to log in
Why doesn't the function in Angular want to work?
Hello, tell me why my function may not work.
Clicking on the title should roll back the dialog box:
<span class="title" ng-click="openTask($index)">{{ task.title }}</span>
$scope.openTask = function( id ){
var task = $scope.tasks[id];
$scope.activeTask = {
title: task.title,
description: task.description,
done: task.done
}
$scope.currentTaskId = id;
$scope.taskModal.show();
console.log('Должно пахать');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question