numeric total value

45 views
Skip to first unread message

Anthony Pri

unread,
Dec 19, 2015, 1:08:03 PM12/19/15
to AngularJS
Ok tried  many ways to get this working and results nothing.
ok example group 1 does a total in input box when flag is true. same for group 1 and 2
problem is after the total in the total box I want to change the total. and also if there is a stand a lone group like group 3 and group 4 
group 3 will not total group  4 because they are in there own group.
https://jsfiddle.net/sevensnake/faoc0Lrj/3/

Sander Elias

unread,
Dec 21, 2015, 12:20:40 AM12/21/15
to AngularJS
Hi Anthony,

I think you should use an separate property for the totals. This is a program logic problem. 
There are also some unknown issues. Like when a user alters the total of group 1 and then one of the value's what should happen? The answer of that question will have a impact on the soution.

Regards
Sander 

Anthony Pri

unread,
Dec 21, 2015, 9:23:57 AM12/21/15
to ang...@googlegroups.com
write now if they alter it it is not a problem. I came up with a way they can alter it and save it and it returns. But I was trying to find a more logical way. 

--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/YSRuhc0GaiQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Anthony Pri

unread,
Dec 21, 2015, 9:37:47 AM12/21/15
to AngularJS
if I can have someone come up with better logic for this it will help a lot.


On Monday, December 21, 2015 at 9:23:57 AM UTC-5, Anthony Pri wrote:
write now if they alter it it is not a problem. I came up with a way they can alter it and save it and it returns. But I was trying to find a more logical way. 
On Mon, Dec 21, 2015 at 12:20 AM, Sander Elias <sande...@gmail.com> wrote:
Hi Anthony,

I think you should use an separate property for the totals. This is a program logic problem. 
There are also some unknown issues. Like when a user alters the total of group 1 and then one of the value's what should happen? The answer of that question will have a impact on the soution.

Regards
Sander 

--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/YSRuhc0GaiQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+unsubscribe@googlegroups.com.

Anthony Pri

unread,
Dec 30, 2015, 3:41:32 PM12/30/15
to AngularJS
I you have a better way. Would be great thanks. again.
Reply all
Reply to author
Forward
0 new messages