I'm new to angularJS and I've just created a simple input box where I want a default value.
Here's the input:
<input id="fieldWidth" min="10" type="number" value="10" ng-model="set.width">
However, the value doesn't show as default.
When I try to set it though the scope in the controller
$scope.set.width = "10";
it says
"Cannot set property 'width' of undefined"
What am I missing?