У меня есть основной код в angularJS для ввода пользовательских входов. Он работает в хроме, но не в firefox. Прикрепленный файл html и js. Может ли кто-нибудь помочь мне решить это.Ошибка браузера Firefox
var application = angular.module('mainApp', []);
application.controller('app', function($scope){
\t $scope.Inputs = [];
\t $scope.searchEnter = function() {
\t \t if(event.which == 13 && $scope.Input != "")
\t \t {
\t \t \t $scope.addInput();
\t \t }
\t };
\t $scope.addInput = function(){
\t \t $scope.Inputs.push($scope.Input);
\t \t $scope.Input = '';
\t \t };
}); \t
<!DOCTYPE html>
<html lang="en">
\t <head>
\t \t <meta charset="UTF-8">
\t \t <title>get the input from user and print on page</title>
\t \t <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
\t \t <script src="controller.js"></script>
\t \t </head>
\t \t \t \t <body ng-app="mainApp" ng-controller="app">
\t \t \t \t \t <h2 style="color:blue"> Enter the input value</h2>
\t \t \t \t \t <input type="text" ng-model="Input" ng-keyup="searchEnter()">
\t \t \t \t \t <div id="InputsToPrint">
\t \t \t \t \t \t <ol>
\t \t \t \t \t \t \t <li style="font-size:14px; font-weight:bold; text-transform:capitalize; font-style=italic; color:green" ng-repeat="firstInput in Inputs">
\t \t \t \t \t \t \t \t {{firstInput}}
\t \t \t \t \t \t \t </li>
\t \t \t \t \t \t </ol>
\t \t \t \t \t </div>
\t \t \t \t </body>
</html>
В входных значений FireFox не печатать на странице.
Спасибо Панкай. Его рабочий штраф – Jayasree
@Jayasree Приятно слышать это, пожалуйста, примите ответ, чтобы он помог другим. Благодаря :-) –