خرید بک لینک

Vote count: 0

I am trying to use a controller that I wrote and saved in a controller.js file, but it won't work in my html code. I have the code written as:

< div ng-app="myApp" ng=controller="movieCtrl">

..bit of my html code..

< /div>

< script src="controller.js">

But that doesn't work correctly, although it works if I just put the code for the controller inside the script tags instead of just putting the src="controller.js". How do I get it to work with that?

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 18 ارديبهشت 1395 ساعت: 9:34

صفحه بندی