Angular js, Ionic 2 Frame work, javascript, programming

Comments Off on Ionic 2 Cr + angular 2 + type script VS Code to Visual studio 2015 Apache cordova

Ionic 2 Cr + angular 2 + type script VS Code to Visual studio 2015 Apache cordova

Recently I started to work on my app. Being use to of Visual studio 2015 I found Ionic 2 beta templates. Downloaded, installed, Ran project. It ran like a charm. These templates ¬†installed beta.10 version of ionic. In RC version of Ionic project structure has been changed massively. I tried to update my project but […]

Angular js, javascript

Comments Off on angular js directive for decimal number

angular js directive for decimal number

Here you find a directive for angular js. input will be a valid decimal number. It will prompt your for spaces too.   app.directive(’validNumberdecimal’, function () { return { require: ‘ngModel’, link: function (scope, el, attrs, ngModel) { el.bind(’change’, function () { scope.$apply(function () { ngModel.$setViewValue(el.val()); ngModel.$render();   var number = el[0].value;   var re […]