We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is going wrong here ?
<!doctype html> <html lang="en" data-ng-app> <head> <meta charset="utf-8"> <title>AngulasJS Demo3</title> <script src ="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script> <script> function nameController($scope){ $scope.firstname = 'John'; $scope.lastname = 'Smith'; } </script> </head> <body data-ng-controller = "nameController"> First Name : <input type = "text" data-ng-model="firstname"></input> <br /> <br /> Last Name : <input type = "text" data-ng-model="lastname"></input> <br /> <br /> Hello {{ firstname }} {{lastname}} </body> </html>
The text was updated successfully, but these errors were encountered:
Hi, me to I got the same problem it seems that it doesn't work fine ! do we miss something ?
Sorry, something went wrong.
@tech-boy You need to initialize angular app and controller like this
<!doctype html> <html lang="en" data-ng-app='myapp' > <head> <meta charset="utf-8"> <title>AngulasJS Demo3</title> <script src ="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script> <script> angular.module('myapp',[]) .controller('nameController',nameController); function nameController($scope){ $scope.firstname = 'John'; $scope.lastname = 'Smith'; } </script> </head> <body data-ng-controller = "nameController"> First Name : <input type = "text" data-ng-model="firstname"></input> <br /> <br /> Last Name : <input type = "text" data-ng-model="lastname"></input> <br /> <br /> Hello {{ firstname }} {{lastname}} </body> </html>
No branches or pull requests
What is going wrong here ?
The text was updated successfully, but these errors were encountered: