*Thanks Sander*
*i try to learn angular as is can, and when i ask here to get help i try to
learn the solution i got to understand it correctly *
*i don't need to use jquery here each time i had learn new thing i edit my
code to be fully with angular*
*i have asked here sir about **pass value of:*
*{{item.sell_price * item.Quantity | currency}}to an input:*
*@Html.TextBox("Total_Item", null, new { ng_model = "item.Total_Item" })
here...**to
got it in my api controller - i work arround it as :*
*@Html.TextBox("Total_Item", null, new { ng_model = "item.Total_Item =
item.sell_price * item.Quantity" })it works fine but i see an error by
inspect element:*
*Error: [ngModel:nonassign]
http://errors.angularjs.org/1.4.0/ngModel/nonassign?p0=item.Total_Item%20%3DNaNtem.sell_price%20*%item.Quantity&p1=%3Cinput%id%3D%22Total_Item%22%20name%3D%22Total_Item%22%20ng-model%3D%item.Total_Item%20%3D%item.sell_price%20*%item.Quantity%22%20style%3D%display%3Anone%3B%22%20type%3D%22text%22%20value%3D%22%22%class%3D%22ng-pristine%20ng-untouched%20ng-valid%22%3E
at Error (native)and i know that the err because :*
*This error occurs when expression the ngModel
<https://docs.angularjs.org/api/ng/directive/ngModel> directive is bound to
is a non-assignable expression.so i try to find here another way to it - so
i asked here to got help because i don't know what i must do in this case*
*Thanks a lot ....*
On Tuesday, June 16, 2015 at 5:59:02 AM UTC+2, Sander Elias wrote:
If you use Angular, and you feel you need to use an ID on a element, you
> are probably doing it wrong. If you really want to learn Angular, then drop
> jQuery for the time you are learning, and start off with working your way
> trough the tutorial <https://docs.angularjs.org/tutorial> and through the
> CodeSchools
> course <http://angular.codeschool.com/>.
> when you have done both, go ahead, and read the styleguide
> <https://github.com/johnpapa/angular-styleguide>.
> When you have difficulties after that, we will be happy to help you.
>
> Regards
> Sander
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.