<style type="text/css"> .myInput{ font-size: 1em; padding: 1em; } </style>
var app = angular.module('app', []); app.controller('myCtrl', function($scope){ $scope.inputType = 'password'; $scope.btnName = 'Show'; $scope.btnType = 'btn-primary'; $scope.icon = 'eye'; $scope.showhidePassword = function(){ if ($scope.inputType == 'password'){ $scope.inputType = 'text'; $scope.btnName = 'Hide'; $scope.btnType = 'btn-default'; $scope.icon = 'eye-slash'; } else{ $scope.inputType = 'password'; $scope.btnName = 'Show'; $scope.btnType = 'btn-primary'; $scope.icon = 'eye'; } } });
<!DOCTYPE html> <html ng-app="app"> <head> <meta charset="utf-8"> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> <style type="text/css"> .myInput{ font-size: 1em; padding: 1em; } </style> </head> <body ng-controller="myCtrl"> <div class="container"> <div class="row"> <div class="col-sm-4 col-sm-offset-4"> </div> </div> </div> </body> </html>