I've started learning Angular JS. I do not understand how Angular is working on the inside. E.g. Let's consider the w3schools' first example:
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<div ng-app="">
 
<p>Input something in the input box:</p>
<p>Name : <input type="text" ng-model="name" placeholder="Enter name here"></p>
<h1>Hello {{name}}</h1>
</div>Questions:
- How do I create an attribute - myng-myappwith plain javascript?
- What is - {{}}in html language? How is the content inside these converted into text? How do I create the same effect with plain javascript. That is I do not use angularjs library and then I insert- {{name}}in the html file. Now in the script tags I define- var name = "Bob". Now how would- {{name}}be converted to- Bob?
Edit: This is how my question is not a duplicate of the linked one:
- My question doesn't ask about compiler, controller, prelink and post link.
- My question doesn't ask about How to declare the various functions? What is the difference between a source template and an instance template? In which order the directive functions are executed? What else happens between these function calls? 
- The linked question doesn't explain how to create custom attributes with plain javascript. 
- It doesn't explain what is {{}}in html or css.
If you think the linked question answer any of my questions you are welcome show that portion and i will be happy to delete my question.
Thank you.
 
    