Angular js-Controller funktioniert nicht gut
function studentController($scope) {
\t \t $scope.student = {
\t \t \t firstName : "Mahesh",
\t \t \t lastName : "Parashar",
\t \t \t fullName : function() {
\t \t \t \t var studentObject;
\t \t \t \t studentObject = $scope.student;
\t \t \t \t return studentObject.firstName + " " + studentObject.lastName;
\t \t \t }
\t \t };
\t }
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script>
<html><title>AngularJS First Application</title>
\t <body><h1>Sample Application</h1>
\t \t <div ng-app="" ng-controller="studentController">
\t \t \t <p>
\t \t \t \t Enter your Name:<input type="text" ng-model="data">
\t \t \t </p>
\t \t \t <p>
\t \t \t \t Hello <span ng-bind="data"></span>!
\t \t \t </p>
\t \t </div>
\t \t <br />
\t \t <table border="1px">
\t \t <tr><th>Fisrt Name</th><th>Last Name</th><th>Full Name</th></tr>
\t \t <tr><td>student.firstName</td><td>student.lastName</td><td>student.fullName</td></tr>
\t \t </table>
\t \t <script src="angular.min.js"></script>
\t </body>
</html>
<script>
\t
</script>
: Ich bin in Angular js und starten Programm zu machen, aber ng-Controller funktioniert nicht, wenn ich einen ng-Controller = "studentController" normale Winkel ng -bind = "Daten" -Programm funktioniert auch nicht. Bitte helfen Sie mir, was darin falsch ist.
Dank
Priyanka Sankhala
schreiben Sie hier Ihren Code – Sajeetharan
ja, Jetzt habe ich meinen Code –
Mögliche Duplizieren von Post - https://stackoverflow.com/questions/26602883/angularjs-ng-controller-not-working –