MPTTTTTT
MPTTTTTT
html
<!DOCTYPE html>
<html ng-app="currencyConvert">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js"></script>
<script src="InvoiceController.js"></script>
<style>
body {
background-color: #f4f4f4;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
.container {
background-color: #fff;
padding: 20px;
border-radius: 8px;
width: 100%;
h1 {
text-align: center;
color: #333;
.form-group {
margin-bottom: 15px;
.form-group label
{ display: block;
margin-bottom: 5px;
color: #666;
{ width: 100%;
padding: 10px;
border-radius: 4px;
box-sizing: border-box;
.total {
margin: 20px 0;
text-align: center;
font-size: 1.2em;
color: #333;
.btn {
display: block;
width: 100%;
padding: 10px;
background-color: #28a745;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1em;
.btn:hover {
background-color: #218838;
</style>
</head>
<body>
<h1>Currency Converter</h1>
<div class="form-group">
<div class="form-group">
</div>
<div class="form-group">
</select>
</div>
<div class="total">
<b>Total :</b>
{{invoice.total(c) | currency:c}}
</span>
</div>
</div>
</body>
</html>
invoiceController.js
var app = angular.module('currencyConvert', []);
self.qty = 1;
self.cost = 2;
self.inCurr =
'EUR';
self.curr = currencyConverterService.currencies;
};
self.pay = function pay() {
window.alert("success");
};
}]);
app.factory('currencyConverterService', function()
var foreignRates =
{ USD: 1,
EUR: 0.86,
CNY: 0.7
};
};
return {
currencies: currencies,
convert: convert
};
});
angular-csp.css
/* Include this file in your html if you are using the CSP mode. */
@charset "UTF-8";
.ng-cloak, .x-ng-cloak,
.ng-hide:not(.ng-hide-animate) {
ng\:form
{ display:
block;
}
.ng-animate-shim {
visibility:hidden;
.ng-anchor {
position:absolute;
bower.json
{
"name": "angular",
"version": "1.5.11",
"license": "MIT",
"main": "./angular.js",
"ignore": [],
"dependencies": {
OUTPUTS :