Angularjs One way Binding Binds Data Two Way

I have a pseudo code like this where using the one-way-binding operator(::) I tried to see if angular is watching for changes. So I had to include it inside an input tag. the model data inside the input tag should be resolved one way because of :: before it. However if I make changes to the input and click the button to see the changes it reflects the changes in the log. But it should not watch for the changes.

<!DOCTYPE html>
<html ng-app="app">
    <meta charset="utf-8">
    <script src=""></script>
<body class="container" ng-controller="ItemsController">
    <ul ng-repeat="item in ::items">
            <!-- in actual code the input will not be included -->
            <input type="text" ng-model=""> {{ }}
            <!-- actual code -->
            <!-- {{ }} -->
    <button type="btn" ng-click="click()">Button</button>

        angular.module('app', [])
        .controller('ItemsController', function ($scope) {
            $scope.items = [
                {name: 'item 1'},
                {name: 'item 2'},
                {name: 'item 3'}

            $ = function () {
                for (var obj of $scope.items) {


A couple of things.

Is one time, no one way bonding. Is useful when you want an expression to be evaluated only once and not watching for changes.

The :: in ng-model is doing nothing, it will still update the scope with the value that you put and update the item name.

At the same time the {{}} should remain unchanged, because is one time binding and it won't watch for additional changes.

So you will see the changes in the log, because the value actually changes, what will not change is the view.

Need Your Help

Dynamically add properties to instances in Python

python dynamic properties

I've got essentially an elaborate wrapper around a list of dictionaries:

Json to Array to extract value PHP

php json

I have one Json file and i need to extract the "tempm" I have try using different forms but couldn't never get only that value.