Today, We want to share with you AngularJs Modules and Controllers With Example.
In this post we will show you AngularJS Module Tutorial Example, hear for Creating AngularJS Modules and Controllers we will give you demo and example for implement.
In this post, we will learn about Hello World with AngularJS module and controller with an example.

Creating Custom AngularJs Modules and Controllers

Angular 6 Example

Angular Latest My Previous Post With Source code Read more…..

  1. Angular 6 Folder Project Structure
  2. Angular 6 CLI Installation
  3. Angular 6 Module File
  4. Angular 6 Components
  5. Angular 6 Services
  6. Angular 6 Routing
  7. Angular 6 CSS
  8. Angular 6 Class Binding
  9. Angular 6 Animation
  10. Angular 6 Templating
  11. Angular 6 HTTP Client
READ :  Dropbox API - Laravel Oauth Dropbox File Upload Steps
AngularJs Modules and Controllers With Example
AngularJs Modules and Controllers With Example

Example for AngularJs Modules

I have make an AngularJs application named such as “infinityKnowApp” which have the main controller named as “infinityCtrl”.

<div ng-app="infinityKnowApp">  
<div ng-controller="infinityCtrl">   
  
Name : <input type="text" ng-model="name"  /></br>  
Name : <input type="text" ng-model="lastname"  /></br> 
Name : {{ name }}  </br>
Lastname : {{ lastname }}  
  
</div>  
</div>  

And then, let us make An AngularJs module

<script>
var infinityKnowApp = angular.module("infinityKnowApp", []);
 infinityKnowApp.controller("infinityCtrl", function($scope) {
    $scope.name = "Tani";
    $scope.lastname = "[email protected]";
});
</script>

AngularJs Modules Full Example

<!DOCTYPE html>
<html lang="en">
<head>
 <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.min.js"></script>
</head>
<body>  
<div ng-app="infinityKnowApp">  
<div ng-controller="infinityCtrl">   
  
Name : <input type="text" ng-model="name"  /></br>  
Name : <input type="text" ng-model="lastname"  /></br> 
Name : {{ name }}  
Lastname : {{ lastname }}  
  
</div>  
</div> 
<script>
var infinityKnowApp = angular.module("infinityKnowApp", []);
 infinityKnowApp.controller("infinityCtrl", function($scope) {
    $scope.name = "Jaydeep";
    $scope.lastname = "[email protected]@gmail.com";
});
</script> 
</body>  
</html> 

READ :  Dynamically Set navbar active tab angularjs ngclass

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Creating AngularJS Modules and Controllers.
I would like to have feedback on my Infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.