Posts

Whats is angular 5

1. A platform =            Angular js work on modern platform App. 2. A framework =           Yes it is framework not a libraries, it is a framework of javascript. 3. Cross platform =           Angular is a cross platform, it means, we can work on mobile app and Web app. 4. SPAs(Single Page Applications) =          Angular also work on single page application, it means when click on any link related to page, only will reload the component. 5. Related things =          React, Vue.js, Ember.js etc.

Currency number to format name in jquery

<!DOCTYPE html> <html> <head>     <title></title> </head> <body>     <input type="text" onchange="changeCurrency(this)" name="">     <br />     <span></span>     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>     <script type="text/javascript">         function changeCurrency(e) {             var getVal = getNumberFormate($(e).val());             var getArrayVal = getVal.split(',');             var getCurrencyType = getArrayVal.length;             var getCurrencyName = '';             if(getCurrencyType == 2) {                 getCurrencyName = 'K';             } else if(getCurrencyType == 3) {                 getCurrencyName = 'M';             } else if(getCurrencyType == 4) {                 getCurrencyName = 'B';             }             $('span').text(getArray

All Expression list in anuglarjs

All AngularJS Expression is here.  Expressions are written inside double braces like {{expression}}. use below any expression in AngularJS . below all expression type.     1. using number     2. using string     3. using object     4. using array Following example will showcase all the above mentioned expressions. <html> <head>     <title>AngularJS Expressions</title> </head> <body>     <div ng-app="" ng-init="marks=[50,80,62,30,25]; studentdetail = {'firstname':'Hardik', 'lastname':'Patel', 'location' : 'India', 'rollno':'5019'}; price = 20; quantity = 50; ">         <p>Name = {{studentdetail.firstname + " " + studentdetail.lastname}}</p>         <p>Total = {{price * quantity}} Rs</p>         <p>Roll No =  {{studentdetail.rollno}}</p>         <p>Marks = {{marks[1]}}</p>     </div&

how to Filter any value in angular js

Here you can filter any value in angularjs. this example is used to Uppercase and lowercase name in angular language. and many more to use filter. <!DOCTYPE html> <html> <head>     <title>Filter Name in Angular Js</title> </head> <body>     <div ng-app="myApp" ng-controller="companyCtrl">         <p>The company Name in lowrcase = {{ company | lowercase }}</p>         <p>The company Name in UpperCase = {{ company | uppercase }}</p>     </div>     <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js"></script>     <script>         angular.module('myApp', []).controller('companyCtrl', function($scope) {             $scope.company = "Google",             $scope.name = "bill gates"         });     </script> </body> </html>

How to open new tage in javascript and html

Open any link in javascript. auto open new tab in your window. here javascript and html language use in this page. try this code for html and javascript language. Example Here :- <!DOCTYPE html> <html> <head>     <title>Open new Tab in javascript</title> </head> <body>     For Open new tab to <a href="#" onclick="window.open('http://webcodingschool.blogspot.com/')">Click here</a> </body> </html>

Download image in a tage in simple html language

Here download gif, png, jpeg, jpg image. you can only create any file link in href tag. download properties in a tag. not only image download many more file download in href tage in html language and simple step for download image. not user jquery and javascript language. Example Here :- <!DOCTYPE html> <html> <head>     <title>Download Any file in a tag</title> </head> <body>     Download Google Image <a href="https://www.gstatic.com/images/branding/googlelogo/2x/googlelogo_color_284x96dp.png" download>Click Here</a> </body> </html>

How to auto print value from textbox in angularjs

Here Print value from Textbox.auto generate value from textbox in angularjs. you can any value write in Textbox. simple code for angularjs. try this code in angularjs. Example Here :- <!DOCTYPE html> <html lang="en-US"> <head>     <title>Print value form Textbox</title> </head> <body>     <div ng-app="">           <p>Name : <input type="text" ng-model="name"></p>           <h1>Hello {{name}}</h1>     </div>     <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> </body> </html>