I have a .Net MVC website thats also using Angular 2 and Typescript.

I have some code thats generating a SelectList from some data 

ViewBag.product = new SelectList(products, "ID", "Type");

In my view i generate the dropdown like this:

@Html.DropDownList("Product", (SelectList)ViewBag.product, "Select product...")

In my Angularmodel I have a string property, for the selected item. But the 
angularmodel does not have access to the data thats going in the dropdown. 
All the other things in the form is binded from the model like this:

ng-model="vm.productModel.money"

How can I get the selected value when posting the form?

Best regards - Aveve

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to