use of com.vaadin.flow.template.angular.ModelValueBindingProvider in project flow by vaadin.
the class TemplateElementStateProviderTest method testElementSubProperty.
@Test
public void testElementSubProperty() {
String modelPath = "bean.name";
ElementTemplateBuilder builder = new ElementTemplateBuilder("div").setProperty("prop", new ModelValueBindingProvider(modelPath));
Element element = createElement(builder);
StateNode stateNode = element.getNode();
ModelMap.get(stateNode).resolveModelMap("bean").setValue("name", "John");
Assert.assertEquals("John", element.getProperty("prop"));
}
Aggregations