Skip to content

Instantly share code, notes, and snippets.

@loomismilitia
loomismilitia / AngularJS-sharing-scope-data-between-controllers.html
Last active September 3, 2017 09:27 — forked from pmanijak/index.html
Service example with AngularJS for sharing scope data between controllers
<!doctype html>
<html ng-app="project">
<head>
<title>Angular: Service example</title>
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<script>
var projectModule = angular.module('project',[]);
projectModule.factory('theService', function() {
return {