<div class="alert alert-error" ng-show="error">{{errorMessage}}</div>

<form ng-submit="addTodo(todoName)">
	<div class="form-group" ng-class="{ 'has-error':todoName.$invalid }">
		<input class="form-control" placeholder="Enter Todo" type="text"
			ng-model="todoName"  required/>
	</div>
</form>

<button class="btn btn-primary" ng-disabled="!todoName"
	ng-hide="editMode" ng-click="addTodo(todoName)">Add Todo</button>

<button type="btn btn-primary" class="btn btn-primary"
	ng-disabled="!todoName" ng-show="e