Hi,
Sorry, I know this is too simple to run a simple Angular code.I also was working on some simple Angular code but this time, I'm stuck that what is happening with my code.
I tried many versions of ng but these are not worthy enough.
I used plnkr.co website to run my code as I'm staring Angular from very basics.
I used Sublime text editor but code is not working there.
I used external js file as a controller but no result
Here is the code:
{{8*9}}
{{message}}
var mainController=function($scope){
$scope.message="Hello";
};
Plnkr Link:-
http://plnkr.co/edit/MLbp6UdAbzaF14xbyRsq?p=preview

Bhuvanesh MohankumarPosted May 15, 2016, 4:02 AM
Bhuvanesh MohankumarPosted May 13, 2016, 1:26 AM
Thanks Viipiin,
Vipin TyagiPosted May 13, 2016, 1:17 AM
Bhuvanesh MohankumarPosted May 13, 2016, 1:07 AM
The "maincontroller" is not defined and yourangularJS cannot understand it,that was the issue, he may haveused some internal script, I believe.
Vipin TyagiPosted May 13, 2016, 12:24 AM
Bhuvanesh MohankumarPosted May 12, 2016, 9:04 AM
I believe the way you defined controller has some issue, Please find the below working code.
http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js">>
{{8*9}}
{{message}}
Bhuvanesh MohankumarPosted May 12, 2016, 9:02 AM
Hi Viipiin,
You are not able to see the $scope.message alone or you are not able to see even the below manipulated value.