JSFiddle - React, Tailwind, and code Playground
by saidulu401
HTML
<div id="loginModal" class="modal" ng-app="MY_APP"
ng-controller="authCtrl as authCtrl">
<div class="modal-background"></div>
<div class="modal-content">
<div class="modal-body">
<form ng-submit="authCtrl.login()">
<h1>Login</h1>
<p id="loginError"> </p>
<input type="email" name="loginEmail" value="" placeholder="email" class="input" ng-model="authCtrl.user.email">
<br>
<input type="password" name="loginPassword" value="" placeholder="******" class="input" ng-model="password" ng-model="authCtrl.user.password">
<br>
<input type="submit" value="Login" >
</form>
</div>
</div>
JavaScript
var app = angular.module("MY_APP", []);
//Parent Controller
app.controller('authCtrl', function() {
var authCtrl = this;
authCtrl.user = {
email: '',
password: ''
};
console.log('hoi1');
authCtrl.login = function (){
debugger
console.log('hoi2');
};
});