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 MohankumarRank #310 · 8.1K reputationPosted May 15, 2016, 12:02 AM EDT
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 12, 2016, 5:02 AM EDT
Hi Viipiin,
You are not able to see the $scope.message alone or you are not able to see even the below manipulated value.
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 12, 2016, 5:04 AM EDT
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}}
Vipin TyagiRank #868 · 2.5K reputationPosted May 12, 2016, 8:24 PM EDT
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 12, 2016, 9:07 PM EDT
The "maincontroller" is not defined and yourangularJS cannot understand it,that was the issue, he may haveused some internal script, I believe.
Vipin TyagiRank #868 · 2.5K reputationPosted May 12, 2016, 9:17 PM EDT
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 12, 2016, 9:26 PM EDT
Thanks Viipiin,