Rajib Mahmud Rajib Mahmud - 1 year ago 74
AngularJS Question

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

<!DOCTYPE html>
<script src= "angular.js"></script>
<div ng-app="myApp" ng-controller="EnglishCtrl">
<p>Filtering input:</p>
<p><input type="text" ng-model="test"></p>
<li ng-repeat="x in English | filter:test | orderBy:'English'">
{{ (x.English | lowercase) + ', ' + x.Bangla }}
<script src="namesController.js"></script>


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 .

But when I run it , it gives me the following ---

enter image description here

Why ?

I want to live . please help me.

Answer Source

Try setting <meta> charset

<meta charset="utf-8" />

Code shown works fine in this demo

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download