- 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>
1 Réponse
+ 1
Maybe you should replace script to the <body>🤔