i have a following code:
<div id="div1" contenteditable="true" class="header-information" style="margin:20px 0" ng-model="vm.employeedescription.Description" spellcheck="false">
{{emp.description}}
</div>
but on button click event i not get the value of this div from ng-model="vm.employeedescription.Description"
how we bind this
please help
3 Answer(s)
-
0
Hi,
This is completely related to AngularJs, not ABP. I did not try such a binding before. Even I'm not sure if ng-model works for div. You may ask on stackoverflow or search on the web for a better answer.
BTW, you're using vm.employeedescription.Description and emp.description. Which one is true? Maybe the problem is that.
Have a nice day.
-
0
sir
{{emp.description}}
this is the value that is fetched from session to display the user.
and
ng-model="vm.employeedescription.Description"
this is the value that i want to again update to database if user updated
but it always shows null when user click on update button this is the problem.
-
0
sir i will search on web for the solution of above problem and may i get a some information on following topic..???
1.) how we work with the session in boilerplate...??? 2) how we upload image and save in database in boilerplate.???
please reply
thank you sir for your attention and guide