JSFiddle - React, Tailwind, and code Playground

by Şuayip Ekmekci

HTML

<!-- örnek-4 (ng-change)-->
<body ng-app="inputExample">
    <div ng-controller="ExampleController">
		name: <input type="text" ng-model="user.name" ng-change="denemeInput()">
		surmane: <input type="text" ng-model="user.lastname">
		<h2>Welcome {{user.name}} {{user.lastname}}</h2>
		<hr>
		<input type="checkbox" ng-model="confirmed" ng-change="denemecheckbox()" id="ng-change-example1" />
		<input type="checkbox" ng-checked="confirmed" id="ng-change-example1" />
		<input type="checkbox" ng-model="confirmed" id="ng-change-example2" />
		<label for="ng-change-example2">Label</label><br />
		<h2>Control {{confirmed}}</h2>
	</div>
</body>

JavaScript

angular.module('inputExample', [])
.controller('ExampleController', ['$scope', function($scope) {
    $scope.user = {name: 'şuayip',lastname:'Ekmekci'};
    $scope.denemeInput = function() {
        alert("input değişti!");
    };
    $scope.denemecheckbox = function() {
        alert("checkbox değişti!");
    };
}]);