Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 23c6b09

Browse files
author
Nick Litwin
committedDec 22, 2015
Add new directive for simple label and input
1 parent 601afef commit 23c6b09

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
 
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
(function() {
2+
'use strict';
3+
4+
angular.module('tcUIComponents').directive('tcInput', tcInput);
5+
6+
function tcInput() {
7+
return {
8+
restrict: 'E',
9+
templateUrl: 'directives/tc-input/tc-input.html',
10+
scope: {
11+
labelText: '@',
12+
placeholder: '@',
13+
inputValue: '='
14+
}
15+
}
16+
}
17+
})();

‎app/directives/tc-input/tc-input.jade

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
label.tc-label {{labelText}}
2+
3+
input(type="text", placeholder="{{placeholder}}", ng-model="inputValue")

0 commit comments

Comments
 (0)
This repository has been archived.