[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/xiazhe/JavaScript-Learning/master/angular/example.controller.js [Back]  [Original]

(function() {
'use strict';

    angular
        .module('teafish')
        .controller('ExampleController', ExampleController);

    ExampleController.$inject = ['$scope'];
    function ExampleController($scope) {
        var self = this;
        
        self.doSomeThing = doSomeThing;

        init();

        ////////////////

        function init() { }

        function doSomeThing(){
            console.log('do something');
        }
    }
})();

Web Proxy Viewer  |  New URL  |  Original Page