Skip to content

Instantly share code, notes, and snippets.

View mobeendev's full-sized avatar

Abdul Mobeen mobeendev

View GitHub Profile
@mobeendev
mobeendev / app.js
Created June 2, 2015 11:44
AngularJS Sharing a Service Among Controller Example
//app.js file//
var app = angular.module("MyApp", [])
.controller("MyCtrl", function($scope) {
$scope.value = 1;
$scope.vis = true;
$scope.name = "Show Hide Box";
$scope.incrementValue = function(val) {