Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
AngularJS Module Controller Example
Keywords : Angularjs module controller service example, Angularjs add controller to module with example, How to use controllers with module in angularjs with example
Example
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> AngularJs Modules Example </title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script type="text/javascript"> var app = angular.module('angularmoduleapp', []); app.controller('angularmodulectrl', function ($scope) { $scope.msg = 'Welcome to Tutlane.com'; }); </script> </head> <body> <h2>AngularJS Module with Controller Example</h2> <div ng-app="angularmoduleapp" ng-controller="angularmodulectrl"> <b> {{ msg }}</b> </div> </body> </html>
Click Here to See Result
Result
Previous
Next