This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//globals | |
var x = 4; | |
function Dog() { | |
alert("Woof"); | |
} | |
// 3rd party libraries use the global scope | |
// making them accessible from anywhere an app | |
jQuery("#myDiv").empty(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- must always supply an href to file --> | |
<a href="/file/somethingreallylongandobscure234211.pdf" download> | |
<!-- if a value is passed to download attr, it will be the name of the file when downloaded --> | |
<a href="/file/generated-budget-1293.pdf" download="Weekly Budget Recap"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
// Change root to point at your ng-app in HTML | |
var root = $(document.getElementsByTagName('body')); | |
var watchers = []; | |
var f = function (element) { | |
if (element.data().hasOwnProperty('$scope')) { | |
angular.forEach(element.data().$scope.$$watchers, | |
function (watcher) { | |
watchers.push(watcher); |
NewerOlder