I thought this would be simple ...
In FireFox I get an
Error: No controller: ngModel ... 2 dozen lines then
<select ng-change="change">
I added
<select ng-change="change">
<option value ="1">Week 1</option>
<option value ="2">Week 2</option>
</select>
<div>counter = {{counter}}</div>
My controller works fine (other ui components bind) here is what I added to my controller
$scope.counter = 1;
$scope.change = function () {
$scope.counter++;
};
I actually need to do an $http.get when a select list changes. But for now I would be happy just to get this simple guy working.
From the error Angular obviously doesn't like what I've written.
What am I doing wrong?
P:)