DEMO and 'benchmark': http://embed.plnkr.co/ZJFVCVeCRLaADEfQcG7D/preview
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 _ = require("lodash"); | |
module.exports = | |
angular.module("plunker.service.commander", []) | |
.factory("commander", [ "$q", "$injector", function ($q, $injector) { | |
var commands = {}; | |
var service = { | |
addCommand: addCommand, |
This directive allows you to stop propagation for any event supplied.
Lets say you have an ng-click
handler on a button that is overlayed on top of an <a href></a>
link. You cant your click handler to fire, but not the anchor tag's default action. What you need is to stop the propagation of the click event up to the anchor tag.
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
{ | |
source: "http://whatever", | |
description: "Blah blah", | |
tags: [], | |
files: { | |
"index.html": { | |
filename: "index.html", | |
content: "<html>..." | |
}, | |
... |
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 app = angular.module('plunker', []); | |
app.controller('MainCtrl', function($scope) { | |
$scope.name = 'World'; | |
}); |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Plunker</title> | |
<link rel="stylesheet" href="style.css"> | |
<script src="script.js"></script> | |
</head> |
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
App = Ember.Application.create({}); | |
App.IndexRoute = Ember.Route.extend({ | |
setupController: function(controller) { | |
controller.set('content', ['a', 'b', 'c']); | |
} | |
}); |
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
{ | |
"yepnope": { | |
"name": "yepnope", | |
"version": "1.5.4", | |
"main": "./yepnope.1.5.4-min.js" | |
}, | |
"stitch-css": { | |
"name": "stitch-css", | |
"version": "0.1.7", | |
"main": "./stylesheets/_stitch.scss" |
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 app = angular.module('plunker', []); | |
app.controller('MainCtrl', function($scope) { | |
$scope.name = 'World'; | |
}); |