Click here to Skip to main content
15,915,093 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
problwem is that i am not able to get out put in message kindly help me.

What I have tried:

my html page

HTML
<!DOCTYPE html>
<html ng_app ="mymodule">
<head>
    <script src="scripts/angular.min.js"></script>
    <script src="scripts/ssript.js"></script>

    <title></title>
</head>
<body>
    <div ng-controller ="mycontroller" >
     
    </div>

</body>
</html>






and script file



JavaScript
/// <reference path="angular.min.js" />

var app = angular.module("mymodule", [])
app.controller("mycontroller", function ($scope) {
    $scope.message ="hello!!"
});
Posted
Updated 11-Dec-16 23:01pm

1 solution

Where do you expect $scope.message to be displayed?

Are you missing a "{{message}}" in your markup?

Also, it's ng-app, not ng_app
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900