Skip to content

Is it possible to use angularJS in webview ? #182

@CCRS-WEB

Description

@CCRS-WEB

Hi,

Is it possible to use angularJS in webview ?
My first try give a strange issue.

<!DOCTYPE html>
<html >
<head>

    <title>Hello</title>  
</head>
<body > 
    <h1>Hello World!</h1>
    <div ng-app="">

      <p>Input something in the input box:</p>
      <p>Name: <input type="text" ng-model="name"></p>
     {{ name }}
      {{ 1 + 2 }}
    </div>

</body>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular.js"></script>
</html>

On load {{ 1 + 2 }} is ok and display 3.
But when changing input does not immediately reload. i need to click on the webview for seeing changes on binding.

Regards,

CW

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions