It is possible to use Polymer library with Strongly-Typed View in a ASP.NET MVC project?
Or...I can use custom elements and Razor but the Polymer Library is too big.
Is there any other way?
It is possible to use Polymer library with Strongly-Typed View in a ASP.NET MVC project?
Or...I can use custom elements and Razor but the Polymer Library is too big.
Is there any other way?
You can use Polymer library without use an element created by Razor. I test with simple elements but I think it will work for you:
I had a class Product
And my Controller with 2 actions:
And finaly the .cshtml when you will put yuor elements
>
I have a form where its action is directed to /Home/Products. When you submit, the form will call your Products action passing your filds by respective name you gave to them. "name", "price", "qtd" in the .cshtm. The action Products must have the seme name of your elements in .cshtml. This way you can get the information of any HTML, Polymer or other elemets.
Bonus, you can get the same result in this way:
And the Action