Не могу найти ошибку. помогите плиз
Не могу найти ошибку. помогите плиз.
<!DOCTYPE html> <html ng-app="helloWorldApp"> <head> <title>Angular</title> <script> var model = "Hello word"; var helloWorldApp = angular.module("helloWorldApp", []); helloWorldApp.controller("HelloWorldCtrl", function($scope) { $scope.message = model; $scope.clickHandler - function() { $scope.message = $scope.text; } }); </script> </head> <body ng-controller="HelloWorldCtrl"> <h1>{{message}}</h1> <input ng-model="text" /> <button ng-click="clickHandler()">New</button> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="js/bootstrap.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script> </body> </html> |
нашел спустя 2 часа :)
|
Часовой пояс GMT +3, время: 06:52. |