ngTags: ngIf, ngReadonly, ngRepeatStart
authorTomas Zeman <tzeman@volny.cz>
Thu, 31 Mar 2016 14:48:44 +0200
changeset 24 4db93c407bae
parent 23 c1250c1cae78
child 25 e59b0d34d1cd
ngTags: ngIf, ngReadonly, ngRepeatStart
shared/src/main/scala/ngTags.scala
--- a/shared/src/main/scala/ngTags.scala	Thu Nov 19 18:23:36 2015 +0100
+++ b/shared/src/main/scala/ngTags.scala	Thu Mar 31 14:48:44 2016 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright 2015 Tomas Zeman <tzeman@volny.cz>
+ * Copyright 2015-2016 Tomas Zeman <tzeman@volny.cz>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -33,10 +33,13 @@
   def ngDisabled(expr: String) = "ng-disabled".attr:=expr
   def ngHide(expr: String) = "ng-hide".attr:=expr
   def ngHref(expr: String) = "ng-href".attr:=interpolate(expr)
+  def ngIf(expr: String) = "ng-if".attr:=expr
   val ngInclude = "ng-include".tag
   def ngInit(expr: String) = "ng-init".attr:=expr
   def ngModel(expr: String) = "ng-model".attr:=expr
+  def ngReadonly(expr: String) = "ng-readonly".attr:=expr
   def ngRepeat(name: String, list: String) = "ng-repeat".attr:=s"$name in $list"
+  def ngRepeatStart(n: String, l: String) = "ng-repeat-start".attr:=s"$n in $l"
   def ngSrc(expr: String) = "ng-src".attr:=expr
   def ngShow(expr: String) = "ng-show".attr:=expr
   def ngStyle(s: String) = "ng-style".attr:=s