Programming Examples
Angular JS program to convert Temperature Fahrenheit to Degree Celsius

Write a Angular JS Program to Convert the Temperature Fahrenheit to Degree Celsius
Solution
<!doctype html>
<html>
<head>
<script language="javascript" src="angular.min.js"></script>
</head>
<body>
<h1>Temperature Fahrenheit to Degree <br/>Celsius Converter using Angular JS</h1>
<div ng-app="" ng-init="f=32">
Temperature in Fahrenheit: <input type="text" ng-model="f"><br/><br/>
Temperature in Degree Celsius: {{(f-32)*(5/9)}}
</div>
</body>
</html>