I delved into understanding the inner workings of Angular.js using a basic example.
<div ng-app="">
<p>Type something in the input field:</p>
<p>Name : <input type="text" ng-model="name" placeholder="Enter name here"></p>
<h1>Hello {{name}}</h1>
</div>
https://i.sstatic.net/dQxji.gif
Is it possible to solely use Angular within an external JavaScript file, without any HTML connection?
In other words, can I achieve something like this...
document.getElementsByTagName('input')[0].ng-model = "name";
document.getElementsByTagName('h1')[0].innerHTML = "Hello {{name}}";
Do I have to integrate with HTML attributes or is it optional?
I couldn't discover any relevant information on this. Thank you for your help.