aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/assets/javascripts/hello/hello.component.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/hello/hello.component.js b/app/assets/javascripts/hello/hello.component.js
index d1601f2..056cd39 100644
--- a/app/assets/javascripts/hello/hello.component.js
+++ b/app/assets/javascripts/hello/hello.component.js
@@ -3,9 +3,11 @@
angular
.module('n.Hello', [])
.component('hello', {
- template: '<h2>Hello {{ $ctrl.name }}</h2>',
+ template:
+ '<h2>Hello {{ $ctrl.name }}</h2>' +
+ '<input type="text" ng-model="$ctrl.name" />',
controller: function() {
- this.name = 'World';
+ this.name = '';
}
});