AngularJS Modules

Modules are used to seperate logics and keep the code clean. So we can define modules in separate js file. Here we will create two modules i.e. Controller Module and Application Module. Controller Module: controller.js Here we are declaring a controller userController module using myApp.controller function. myApp.controller(“userController”, function($scope) { $scope.user = { first_name: “Tim”, last_name: […]

AngularJS Controller

To control the flow of data AngularJS mainly relies on controllers. It is defined using ng-controller directive. Controller contain attributes, properties and functions. Example of Controller: <html> <head> <title>AngularJS Controllers</title> <script src=”http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js”></script> </head> <body> <h2>AngularJS Controllers</h2> <div ng-app=”ngApp” ng-controller=”nameController”> First name: <input type=”text” ng-model=”name.firstName”><br><br> Last name: <input type=”text” ng-model=”name.lastName”><br> <br> Full name: {{name.fullName()}} </div> <script> […]

Send an enquiry

How to submit a guest post for Namaste UI? Are you interested in writing technology blogs for Namaste UI? We accept guest posting on different technology-related topics like e-commerce, finance and monetization, health, social media and marketing, search engine optimization, careers and interview, web design and development, and many more. Any writer with a knack for writing […]

Privacy Policy

This Privacy Policy governs the manner in which Namaste UI collects, uses, maintains and discloses information collected from users (each, a “User”) of the http://www.namasteui.com website (“Site”). Personal identification information We may collect personal identification information from Users in a variety of ways, including, but not limited to, when Users visit our site, fill out […]