Ejemplo n.º 1
0
        private static AngularForm <TModel> BeginAngularFormHelper <TModel>(this HtmlHelper <TModel> helper, string name, string submitMethod, string prefix, IDictionary <string, object> htmlAttributes, bool isNgForm, bool render) where TModel : class
        {
            var form = new AngularForm <TModel>(helper, name, submitMethod, prefix, htmlAttributes, render);

            form.IsNgForm = isNgForm;
            form.Initialize();
            return(form);
        }
 internal NgClassErrorBinding(ValidationMode validationMode, AngularForm <TModel> form)
 {
     _validationMode = validationMode;
     _form           = form;
 }
Ejemplo n.º 3
0
 internal NgClassErrorBinding(bool onDirtyOnly, AngularForm <TModel> form)
 {
     _onDirtyOnly = onDirtyOnly;
     _form        = form;
 }