AngularJS, submitting from input pushing enter

Size
2,219 Kb
Views
38,456

How do I make an angularjs, submitting from input pushing enter?

What is a angularjs, submitting from input pushing enter? How do you make a angularjs, submitting from input pushing enter? This script and codes were developed by Susanne Karin Lundblad on 13 September 2022, Tuesday.

AngularJS, submitting from input pushing enter Previews

AngularJS, submitting from input pushing enter - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>AngularJS, submitting from input pushing enter</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div ng-app="" ng-controller="ContactController"> <h2>Email list:</h2> <ul> <li ng-repeat="contact in contacts track by $index">- {{ contact }} </li> </ul> <h2>Add contact</h2> <form ng-submit="addMail()"> <input type="mail" ng-model="mailAdress"/> <button type="submit">Add contact</button> </form>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.5/angular.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

AngularJS, submitting from input pushing enter - Script Codes CSS Codes

html, body { background-color: #ecf0f1; margin: 20px auto; display: block; width: 600px;
}
h2, li { font-family: "Helvetica Neue", sans-serif; font-weight: 300;
}
h2 { color: #2980b9; margin-bottom: 9px; margin-top: 0; font-size: 18px;
}
li, ul { margin: 0; color: #2c3e50; list-style: none;
}
ul { padding-left: 0; margin-bottom: 32px;
}
input { border: 1px solid white; height: 19px; border-top-left-radius: 2px; border-bottom-left-radius: 2px; width: 200px; float: left; transition: border 0.2s ease-out;
}
input:hover { border: 1px solid #9B9B9B;
}
button { border: 0; background-color: #3498db; color: white; padding: 5px 16px; transition: background-color 0.2s ease-out; border-top-right-radius: 2px; border-bottom-right-radius: 2px; float: left; margin: 0;
}
button:hover { background-color: #2980b9;
}

AngularJS, submitting from input pushing enter - Script Codes JS Codes

function ContactController($scope) { $scope.contacts = ["[email protected]", "[email protected]"]; $scope.addMail = function() { if(this.mailAdress) { $scope.contacts.push($scope.mailAdress); $scope.mailAdress = ""; } };
}
AngularJS, submitting from input pushing enter - Script Codes
AngularJS, submitting from input pushing enter - Script Codes
Home Page Home
Developer Susanne Karin Lundblad
Username SusanneLundblad
Uploaded September 13, 2022
Rating 3
Size 2,219 Kb
Views 38,456
Do you need developer help for AngularJS, submitting from input pushing enter?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Susanne Karin Lundblad (SusanneLundblad) Script Codes
Create amazing SEO content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!