- 1

Can somebody explain to me why this doesn't work please?

<!DOCTYPE HTML> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> </head> <body> <div ng-app ng-init="celsius=0;diff=32;Fahrenheit =32;other=0"> <p>Celsius: <input type="text" ng-model="celsius" value="{{ Fahrenheit/1.8+other }}"></p> <p>Fahrenheit:<input type="text" ng-model="Fahrenheit" value="{{ celsius*1.8+diff }}"></p> </div> </body> </html>

30th Nov 2019, 3:15 PM
Joshua
1 Odpowiedź
+ 1
Maybe you should replace script to the <body>🤔
2nd Dec 2019, 7:29 PM
Ray