Implement AngularJS in pure Javascript

Assume you need to implement the basics of AngularJS (Angular 1) - without using the angularJS library, how do you implement it by pure javasScript? this is interview question, will be happy to get some ideas :-)