Skip to main content

Posts

Password mismatch validation in angularjs

Angular using to apply password mismatch validation in the form. We need a password match validation, When i interred my password field value say for example admin(*****) and conform password field will inter match the same value from the field. The value are match means set flag for a variable is True or   mismatched the value means it will set Fasle.  Based this flag value to show the message form to apply directive of ng-show. This logic apply email validation also. AngularJS: var app = angular.module('frmVal',[]); app.controller('FrmCtrl', function($scope){     $scope.pwd = "";     $scope.cpwd = "";       $scope.isMatch = true;       $scope.$watch('pwd', function(newValue, oldValue){         if(newValue == $scope.cpwd)         {             $scope.isMatch = false;         } else {         ...

Fiksu integration by cordova mobile application

Fiksu: A fiksu is a advertisement agency in various media domain. Especially in mobile application side more effectively analysis by mobile users. Their best to do the ads on your application and collective revenue  and pay to the yours. Fiksu Integration Steps:(Install Linux or Ubuntu) 1.  Create an account from fiksu site as following URL https://dashboard.fiksu.com/en/signin . 2.  Singin your credential from this site. 3. Download the fiksu SDK files Download . 4.Then open your terminal and type android command. Open Android SDK manager widget is select Extra package inside play related package list item is select and install it. 5. Now extract fiksu SDK downloaded and get Path details and execute following command. cordova plugin add com.fiksu.sdk --searchpath home/user/Fiksu-SDK-for-Cordova-1.2.0/Library/plugin --noregistry 6. Add the following code from your index.html inside of the javascrip blog. Android: onDeviceReady: function() { ...

Angularjs Button

HTML input element is have properties as following ng-model and ng-value as declare dynamic change the event fire on button click. A button ng-value is change on when event is fire, This logic is apply into ng-model component value is replace the ng-value block. Sample HTML Code: <div ng-app="BtnApp"> <div ng-controller="BtnCtrl">     Do you want Car?     <input type="button" ng-model="youWantCar" ng-value="youWantCar" ng-click="changeStatus()"/> </div>     </div> AngularJS: var app = angular.module('BtnApp', []); app.controller('BtnCtrl',function($scope){     $scope.youWantCar = "No";     $scope.changeStatus = function(){         if($scope.youWantCar == "No")             $scope.youWantCar = "Yes";         else             $scope.youWantCar = "No";     };    ...

A simple start and stop timer counter in angularjs

     AngularJs using to create a start and stop counting timer functionality application. This application is need the following directive like $interval and $filter , We create default time object is display current timer clock functions.         A timer counter is have three functionality as below that start, stop and reset. A start function is called to start the $ interval directive to active so now counter is begin, This moment you are unable to proceed a reset logic.         Stop function is is call to $ interval belongs one of the method like cancel , This method make corresponding active interval prose is stop it. Reset function is call to reset all scope value is to be zero. HTML: <div ng-app="timerApp">     <div ng-controller="timerController">         Current Time : {{time}} <br/>   ...

ng-Init in angularjs

Ng-init is a local scope of DOM controller in the region. In the ng-init blog is declare a variable, This variable have to scope of current Controller. Syntax: <div ng-init="variable"> </div> Example: <div ng-app="appInit">     <div ng-controller="appCtrl">         <div ng-init="items =  (data | orderBy:'name')">                        <div ng-repeat="item in items">                 {{item.name}} - {{item.mobile}}             </div>         </div>     </div> </div> AngularJS: var app = angular.module('appInit',[]); app.controller('appCtrl',function($scope){   ...

ng-messages in angularjs

         mg-message is a directive with the purpose of show and hide the directive based on validation or condition of Object. This Object reference of ng-messages base Object defend to key/value base to map the component display inside of ng-message . Syntax: <Div ng-messages = "expression" role = "alert" > <Div ng-message = "Value" > ... </Div> <Div ng-message = "Value1, Value2, ..." > ... </Div>     </Div> HTML : <div ng-app="msgApp">     <div ng-controller="msgCtrl">         <form name="msgForm">             <input type="text" name="userName" ng-model="user_name" ng-maxlength="20" ng-minlength="5" required />                         ...

Hijacking WhatsApp Account in Seconds Using This Simple Trick

           The badly accepted smartphone messaging annual WhatsApp, acquired by Facebook for over $20 billion endure year, has reportedly been begin to be decumbent to hijacking after unlocking or alive your accessory password, authoritative its hundreds of Millions of users accessible to, not just hackers, but aswell non-technical people.           This ambush lets anyone surrounds you to get finer ascendancy over your WhatsApp account. The antagonist needs annihilation added than a buzz amount of the ambition being and admission to the ambition adaptable buzz for a few seconds, even if it is locked. Hacking Whatsapp annual in such book is not harder for your accompany and colleagues. This is not in fact a artifice or vulnerability in WhatsApp, and rather it is just the way WhatsApp is advised and its annual bureaucracy apparatus works.  NOTE : Moreover, we aren...