$('form').sisyphus() not working in a form directive in angular js
Closed this issue · 2 comments
var AnswerFormDirective = function(QuestionsService,AJAXCallService){
return{
restrict: 'E',
scope:{
guidelines: '@',
imageUploading: '@',
answerFormId: '@'
},
templateUrl: '../consult/assets/src/views/answerForm.html',
controller: function($scope,$stateParams,$resource,$location, appvalues){
//$scope.answer = '';
var form = $('form');
var formId = $("#answer-form").attr('form-id');
console.log(formId);
$('form').sisyphus();
}
}
i have a directive which is the text area with a submit button. I can see the text entering in the localstorage however when i refresh the page the data is lost. Doesnt get persisted. PS: the shared code is snippet, so ignore any incomplete brackets.
@nitish24p did you find a solution?
nopes wrote a workaround on my own without the sisyphus library