Skip to content

Commit 2e0e226

Browse files
Mekhaeil, PeterMekhaeil, Peter
Mekhaeil, Peter
authored and
Mekhaeil, Peter
committed
use ng-class to detect if a model exists to add angular-material class required
1 parent afb916e commit 2e0e226

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"gulp": "^3.9.0",
1616
"gulp-angular-templatecache": "^1.6.0",
1717
"gulp-concat": "^2.5.2",
18+
"gulp-jscs": "^3.0.2",
1819
"gulp-minify-html": "^1.0.2",
1920
"gulp-rename": "^1.2.2",
2021
"gulp-uglify": "^1.2.0",

src/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<md-input-container class="schema-form-{{form.type}} {{form.htmlClass}}" sf-messages>
1+
<md-input-container class="schema-form-{{form.type}} {{form.htmlClass}}" ng-class="{'md-input-has-value':model['{{form.key.slice(-1)[0]}}']}" sf-messages>
22
<label ng-show="showTitle()" for="{{form.key.slice(-1)[0]}}">{{form.title}}</label>
33
<!--
44
<input ng-if="!form.fieldAddonLeft && !form.fieldAddonRight"

0 commit comments

Comments
 (0)