[英]How can I cope with the language system in angular.js?
I want to make a filter input . 我想输入一个过滤器。 but is facing a problem which I couldn't solve. 但遇到了我无法解决的问题。
My files are given below : 我的文件如下:
Idioms and phrase.html 习语和phrase.html
<!DOCTYPE html>
<html>
<script src= "angular.js"></script>
<body>
<div ng-app="myApp" ng-controller="EnglishCtrl">
<p>Filtering input:</p>
<p><input type="text" ng-model="test"></p>
<ul>
<li ng-repeat="x in English | filter:test | orderBy:'English'">
{{ (x.English | lowercase) + ', ' + x.Bangla }}
</li>
</ul>
</div>
<script src="namesController.js"></script>
</body>
</html>
namesController.js namesController.js
var app = angular.module('myApp', [])
app.controller('EnglishCtrl', function($scope) {
$scope.English = [
{English:'A black sheep', Bangla:'কুলাঙ্গার'},
];
});
and the angular.js file what we know . 和angular.js文件我们知道的。
But when I run it , it gives me the following --- 但是,当我运行它时,它给了我以下-
Why ? 为什么呢
I want to live . 我想生活 。 please help me. 请帮我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.