This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
| <!DOCTYPE html> | |
| <html ng-app="myApp"> | |
| <head> | |
| <meta name="description" content="Angular.js copy, merge, extend"> | |
| <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> | |
| <meta charset="utf-8"> | |
| <title>AngularJS copy() and extend() method Example</title> | |
| </head> | |
| <body ng-controller="MyController" ng-cloak> | |
| <h1>Angular copy, extend and merge method Example</h1> |
| <!DOCTYPE html> | |
| <html ng-app="myApp"> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> | |
| <meta charset="utf-8"> | |
| <title>AngularJS copy() and extend() method Example</title> | |
| </head> | |
| <body ng-controller="MyController" ng-cloak> | |
| <h1>Angular copy, extend and merge method Example</h1> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Simple Leaflet Map</title> | |
| <meta charset="utf-8" /> | |
| <link | |
| rel="stylesheet" | |
| href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" | |
| /> | |
| </head> |
| @media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ } | |
| @media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ } | |
| @media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ } | |
| @media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ } | |
| @media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ } | |
| @media (min-width:1281px) { /* hi-res laptops and desktops */ } |
| angular.module('services', []) | |
| .factory('State', function ($rootScope) { | |
| 'use strict'; | |
| var state; | |
| var broadcast = function (state) { | |
| $rootScope.$broadcast('State.Update', state); | |
| }; | |
| var update = function (newState) { |
| var ready = (function(ready) { | |
| var ie = function() { | |
| return (!document.attachEvent || typeof document.attachEvent === "undefined" ? false : true); | |
| } | |
| ready = function(callback) { | |
| if(callback && typeof callback === 'function'){ | |
| if(ie()) { | |
| document.attachEvent("onreadystatechange", function() { | |
| if(document.readyState === "complete") { |
| /* | |
| A few Angular Performance Tips & Best Practices to follow | |
| for big performance gains for Angular 1.x applications | |
| */ | |
| // #1 - AVOID WATCH EXPRESSIONS WHENEVER POSSIBLE | |
| // 1-A | |
| //Don't do this |