I have an MS SQL Server database. This database contains statistics for
users to fill out monthly. The site administrators can add and remove
fields they want so the form needs to be dynamic. I'm new to Angular and
from what I have seen through the Heroes tutorial and other explanations
there should be a class that defines your object. So, I should have a
class that is something like this:
export class Stats{
stat_field1: number;
stat_field2: number;
stat_field3: number;
stat_field4: number;
}
Then in my component's TS file I will need to reference this object
definition as I create the object to pass back to the database. My
question is, if these fields are dynamic, how do I define this class?
Thank you in advance,
Ronnie
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/a3871c76-b55f-4cae-942d-e496fd568600%40googlegroups.com.