$ npm install -g grunt-cli bower yo generator-karma generator-angular
Como capturar todas las palabras terminadas en a
([a-zA-Z]*a+)(?:$|[ ,.])
https://regex101.com/r/QTKNnf/3/
const regex = /([a-zA-Z]*a+)(?:$|[ ,.])/gm;
const str = `matchea, toda palabra terminada en a. Y no en e, por ejemplo.`;
const subst = ``;
// The substituted value will be contained in the result variable
const result = str.replace(regex, subst);
console.log('Substitution result: ', result);
Repo https://github.com/cortezcristian/angular-softing
Cheatsheet Directives https://egghead.io/articles/angularjs-core-services-directive-definition-object-and-ui-router-cheat-sheets
Bootsnip
https://bootsnipp.com/snippets/kW9gA
Code
<!doctype html>
<html ng-app="app1">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
</head>
<body>
<div ng-controller="CalcCtrl" class="calculator">
<div class="top">
<span class="clear">C</span>
<input class="screen" />
</div>
<button ng-repeat="n in pad">{{n | uppercase}}</button>
</div>
<script>
angular.module('app1', []).controller('CalcCtrl', function($scope){
debugger;
$scope.pad = '12345+-=cX';
});
</script>
</body>
</html>