angularjs - Convert angular code to Javascript -


how convert below code pure javascript (which not involve angular)? controller code follows

var app = angular.module('myapp', []);     app.controller('mycontroller',['$scope', function($scope){      ]}); 

html code:

<html>     <head></head>     <body ng-app="myapp" ng-controller="mycontroller"></body> </html> 

if want convert angularjs code javascript code, why using angularjs framework?. can go normal javascript code instead of angularjs.


javascript language written websites run in client’s browser.

angularjs hip javascript framework made building large, single-page web applications.


so understand, using javascript code in angularjs . there no separate code angularjs.

angularjs library package same jquery. think jquery code not javascript code?

we using javascript code in angularjs. there have no separate language , don't need convert. per question, asking convert javascript javascript.

but in angular 2 , angular 4 using typescript instead of javascript.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -