angularjs - HTML Page Select All Angular issue or NWJS issue? -


i have issue navigate around html angular app, when page renders renders on page "selected".

i using latest angular 1.x version, along angular material (latest). should add running in nwjs 0.12, factor

i have yet identify exact behavior pattern makes occur, enough annoying users.

let selector = document.queryselectorall("h1");    for(let = 0; < selector.length; i++){      let ng = selector[i].getattribute("ng-model");        if(ng != null){      console.log(selector[i].classlist.add("selected"))    }        }
.selected{    background: skyblue;    display: block;  }
<h1>20% cooler</h1>  <h1 ng-model="cooler">20% cooler</h1>  <h1 ng-model="cuteoctocat">githubr</h1>


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -