This file contains hidden or 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
<?php | |
class Deck { | |
private $deck = []; | |
/** |
This file contains hidden or 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
// This is particularly handy if you need to call a service's method from outside of Angular, for whatever reason. | |
// Have your app on global namespace: | |
var hz = {}; | |
hz.app = angular.module('hz', ... | |
// Ok, so you make a service and give it some methods: |
This file contains hidden or 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
<html> | |
<head> | |
<script type="text/javascript"> | |
// ** Closure reference test | |
var rwaf = {}; | |
rwaf.login = function() { |