语言

Menu
Sites
Language
Samsung Z3 + angular

Hi 

i'm struggling with this basic code : 

<html data-ng-app="">

<head>

<title>Title</title>

<meta charset="UTF-8" />

<script src="js/angular.min.js" type="text/javascript">

</script>

</head>

<body>

<div data-ng-init="names = ['Jack', 'John', 'Tina']">

<h1>Cool loop!</h1>

<ul>

<li data-ng-repeat="name in names">{{name}}</li>

</ul>

</div>

</body>

</html>

It wotks perfectly in the emulator but not im my samsung Z3

Thanks

响应

2 回复
Seemanta Saha

Hello Joachim Rodrigues,

I have tried with your code and it is successfully running on both web simulator and my Tizen Z1 device.

Kindly check the following steps for your understanding:

1. Download "angular.min.js" from "https://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"

2. Open a basic web application in Tizen IDE.

3. Replace the content of index.html by your code.

4. Place the downloaded "angular.min.js" file in the "js" folder of the web application.

5. Run it as "Web Application"

 

Thanks

Seemanta 

Seemanta Saha

I have also checked in Samsung Z3 device and angular js code is working fine.