JSFiddle

  • AngularJS Directives - Widget Directive #260 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    var module = angular
            .module('animateApp', [])
            .directive('ball', function ($defer) {
                return {
                    restrict:'E',
                    link:function (scope, element, attrs) {
                        element.addClass('circle ...
  • Angular: Empty Fiddle #16817 is the latest revision

    http://angularjs.org/

    var myApp = angular.module('myApp',[]);
    
    //myApp.directive('myDirective', function() {});
    //myApp.factory('myService', function() {});
    
    function MyCtrl($scope) {
        $scope.name = 'Superhero';
    }
  • Angular Fiddle

    No-Library (pure JS), HTML, CSS, JavaScript

    <script type="text/javascript" ng:autobind
            src="http://code.angularjs.org/0.9.17/angular-0.9.17.js"></script>
    
    <div ng:init="itemsArray = [[], ['a'], ['a', 'b'], ['a', 'b', 'c'], ['a', 'b', 'c', 'd']]">
      <select name="items" ng:options="item.length for item in itemsArray">
        <option value="">-- choose number of items --</option>
      </select>
    
      <ul>
        <li ng:repeat="item in items">$index={{$index}}; $position={{$position}}</li>
      </ul>
    </div>
  • Angular Fiddle

    No-Library (pure JS), HTML, CSS, JavaScript

    <script type="text/javascript" ng:autobind
            src="http://code.angularjs.org/0.9.17/angular-0.9.17.js"></script>
    
    <select name="foo" ng:init="foos = ['aa', 'bb', 'cc']">
        <option ng:repeat="f in foos">{{f}}</option>
    </select>
    
    {{foo}}
  • Angular Fiddle #52 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    <script type="text/javascript" ng:autobind
            src="http://code.angularjs.org/0.9.17/angular-0.9.17.js"></script>
  • trying to use angular #2 is the latest revision

    jQuery 1.5.2, HTML, CSS, JavaScript

    // If this wasn't in jsfiddle, this would be its own source file
    var plans = (function() {
        var exposed = {};
    
        var PlanListController ...