<div> <h4>Enter Project Name</h4> <input type="text" ng-model="name" /> <div style="text-align:center;margin-top:20px;"> <button class="btn btn-default" ng-disabled=" name==null || name==''" ng-click="createName(name)">Create</button> </div> </div> <style> input { border-radius: 10px; border: 1px solid #eeeeee; width: 100%; } </style>