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
export function main() { | |
describe("ElementInjector", | |
() => { | |
[{ strategy: 'inline', bindings: [] }, { strategy: 'dynamic', bindings: dynamicBindings }].forEach((context) => { | |
var extraBindings = context | |
['bindings']; | |
describe(`${context['strategy']} strategy`, | |
() => { | |
describe("lifecycle", () => { | |
it("should call onDestroy on directives subscribed to this event", |
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
<div data-role="controlgroup" data-type="horizontal"> | |
<a ng-repeat="filter in filterSet" data-role="button">{{filter.label}}</a> | |
</div> |
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 () { | |
var d, main, lines, w, d2, i; | |
d = document; | |
function code(id) { | |
var el = d.querySelector('#file_' + id.replace('.', '\\.') + ' .lines .highlight'); | |
if (el) { | |
return el.innerText; | |
} | |
el = d.querySelector('[name="file_contents['+id+']"]'); | |
if (el) { |
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
var nextId = 2; | |
function add() { | |
var group = $("#group"); | |
nextId++; | |
$("#group").append('<label for="c' + nextId + '">C' + nextId + '</label><input id="c' + nextId + '" type="checkbox">'); | |
$("#page").trigger("create"); | |
} |
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
angular.service('todoStore', function(xhr, waitDialog) { | |
var readUrl = 'https://secure.openkeyval.org/'; | |
var writeUrl = 'https://secure.openkeyval.org/store/?'; | |
function read(key, success) { | |
waitDialog.show(); | |
xhr('JSON', | |
readUrl + key+'?callback=JSON_CALLBACK', | |
function(status, data) { | |
success(data); |