JSFiddle

  • Lungo + Angular = broken updates

    AngularJS 1.0.3, HTML, CSS, JavaScript

    angular.module('myApp', ['Centralway.lungo-angular-bridge']);
    
    function FunWithClassesCtrl($scope) {
        $scope.items = [];
        $scope.clicks = 0;
        $scope.generateItems = function() {
            setTimeout(function() { 
                $scope.clicks ...
  • Basic LAB example

    AngularJS 1.0.3, HTML, CSS, JavaScript

    var directivesModule = angular.module('popup.directives', []);
    directivesModule.directive('ngPopup', function (PopupService) {
        return {
            restrict: 'A',
            link: function postLink(scope, element, attrs ...
  • Angular starting point

    AngularJS 1.0.3, HTML, CSS, JavaScript

     var jsonp_callback = function() {
            console.log('callback');
        };
    function MyCtrl($scope, $http) {
        $scope.message = "Hello, world";
       
        $scope.doit = function() {
            $http.jsonp('http ...
  • Angular starting point

    AngularJS 1.0.3, HTML, CSS, JavaScript

    
    app = angular.module("mockingYou", ['ngMockE2E'])
    .run(function($httpBackend) {
        $httpBackend
            .expectGET('http://www.google.com') 
        .respond(200, {message: "hahahahah, noooo"});
    });
    
    app ...
  • Angular - access from outside of the box

    AngularJS 1.0.3, HTML, CSS, JavaScript

    function MyCtrl($scope, $window) {
        $scope.message = "Hello, world";
        
        $scope.updateMessage = function(message) {
            $scope.message = message;
        }
        
        $window.wrapperFunction = function(messageFromOutside) {
            console ...
  • Basic LAB example #1 is the latest revision

    AngularJS 1.0.3, HTML, CSS, JavaScript

    var directivesModule = angular.module('popup.directives', []);
    directivesModule.directive('ngPopup', function (PopupService) {
        return {
            restrict: 'A',
            link: function postLink(scope, element, attrs ...
  • Angular example using ng:include

    AngularJS 1.0.3, HTML, CSS, JavaScript

    function MyCtrl($scope) {
        $scope.counter = 1;
        $scope.message = "Hello, world";
        $scope.templateUrl = 'partial1.html';
        
        var _flip = function() {
            $scope.templateUrl = ($scope ...
  • Datepicker Prototype in Lungo

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

    Lungo.init({});
    
    Lungo.dom('#overlay').hide(); // Cheating
    
    var picker = null; // More cheating
    Lungo.dom('#calendarButton').tap(function() {
        Lungo.dom('#overlay ...
  • Manual Lungo notifications #24 is the latest revision

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

    Lungo.init({});
    
    Lungo.dom('#overlay').hide();
    
    Lungo.dom('#calendarButton').tap(function() {
        console.log("And we're away");
        Lungo.dom('#overlay ...
  • Angular starting point

    AngularJS 1.0.3, HTML, CSS, JavaScript

    function MyCtrl($scope) {
        $scope.message = "Hello, world";
    }