ANGULAR NG-SHOW AND CHANGE TEXT FIELD TO INPUT FIELD

Example code in Angular JS to change the text Heading to input text field without losing 2-way data binding. <!DOCTYPE html><html><script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js”></script><body><div ng-app=”myApp” ng-controller=”myCtrl”><h1 ng-dblclick=”change()” ng-if=”!myv”>{{carname}}</h1><h1 ng-show=”myv”><input type=”text” ng-model=”carname”><button ng-click=”done()”>Done</button></h1></div><script>var app = angular.module(‘myApp’, []);app.controller(‘myCtrl’, function($scope) { $scope.carname = “Volvo”; $scope.change = function() { $scope.myv = … Continue readingANGULAR NG-SHOW AND CHANGE TEXT FIELD TO INPUT FIELD

Google MAPS

Google Maps is excellence way to show your location. Interactive map will allow your users to remember your location. To use Google Maps by Latitude and Longitude you just need to sign up for Google Developer. https://console.developers.google.com Go to the API Menu and search Google … Continue readingGoogle MAPS

AJAX Example

Anyone want example of AJAX Javascript. You can check out this link https://adisazizan.xyz/tutorial/ajax/ This example is using GET method. I created this for my quiz. Example 1 – Resource HTML Solution: Javascript Example 2 HTML + JAVASCRIPT There also tutorial on the AJAX POST. Below … Continue readingAJAX Example