Example #1
0
 public static TModel NgIf <TModel>(this TModel element, Func <TModel, string> callbackSelector, string value) where TModel : HtmlElement, IHtml
 {
     element["ng-if"] = new NgIf(callbackSelector(element), value).ToAttribute();
     return(element);
 }
Example #2
0
 public static TModel NgIf <TModel>(this TModel element, string value) where TModel : HtmlElement, IHtml
 {
     element["ng-if"] = new NgIf(value).ToAttribute();
     return(element);
 }