I'm a newbie to AngularJs, so this might be trivial.
Are there any inbuilt AngularJs directive
to detect unsaved data in a form.
If not then how to go about writing one.
Any pointers would be appreciated.
html code is
<input type="text" runat="server" />
And my angular js controller code is
function MyCtrl1($scope) {
// code to do stuff
}MyCtrl1.$inject = ['$scope'];
I am trying to write a directive to detect unsaved data, and I'm guessing its to be written in the above controller.Correct me if wrong.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…