"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require("@angular/core");
var static_1 = require("@angular/upgrade/static");
var angular = require("angular");
var moment = require("moment");
exports.moduleName = 'MiscTestModule';
var MiscTestController = (function () {
    function MiscTestController($scope) {
        this.$scope = $scope;
    }
    MiscTestController.prototype.$onInit = function () {
        var _this = this;
        this.myNum = 2;
        this.myValue = 1;
        var templateScope = this.$scope.$new();
        templateScope.text = 'Some text';
        this.template = {
            template: '<div>{{text}}</div>',
            scope: templateScope,
        };
        this.number = 5;
        this.date = moment('2016-04-01T12:00:00.000-08:00').tz('US/Pacific');
        var unbind = this.$scope.$watch('misc.lazyLoad', function (value) {
            if (value) {
                _this.initialized = true;
                unbind();
            }
        });
    };
    return MiscTestController;
}());
MiscTestController.$inject = ['$scope', '$timeout'];
var MiscNg1BootstrapperComponent = (function () {
    function MiscNg1BootstrapperComponent() {
    }
    return MiscNg1BootstrapperComponent;
}());
MiscNg1BootstrapperComponent = __decorate([
    core_1.Component({
        selector: 'tsMiscNg1Bootstrapper',
        template: '<tsMiscNg1></tsMiscNg1>'
    })
], MiscNg1BootstrapperComponent);
exports.MiscNg1BootstrapperComponent = MiscNg1BootstrapperComponent;
var MiscNg2BootstrapperComponent = (function () {
    function MiscNg2BootstrapperComponent() {
    }
    return MiscNg2BootstrapperComponent;
}());
MiscNg2BootstrapperComponent = __decorate([
    core_1.Component({
        selector: 'tsMiscNg2Bootstrapper',
        template: '<tsMiscNg2></tsMiscNg2>'
    })
], MiscNg2BootstrapperComponent);
exports.MiscNg2BootstrapperComponent = MiscNg2BootstrapperComponent;
var MiscNg1Directive = (function (_super) {
    __extends(MiscNg1Directive, _super);
    function MiscNg1Directive(elementRef, injector) {
        return _super.call(this, 'tsMiscNg1', elementRef, injector) || this;
    }
    return MiscNg1Directive;
}(static_1.UpgradeComponent));
MiscNg1Directive = __decorate([
    core_1.Directive({
        selector: 'tsMiscNg1'
    }),
    __metadata("design:paramtypes", [core_1.ElementRef, core_1.Injector])
], MiscNg1Directive);
exports.MiscNg1Directive = MiscNg1Directive;
var MiscNg2Directive = (function (_super) {
    __extends(MiscNg2Directive, _super);
    function MiscNg2Directive(elementRef, injector) {
        return _super.call(this, 'tsMiscNg2', elementRef, injector) || this;
    }
    return MiscNg2Directive;
}(static_1.UpgradeComponent));
MiscNg2Directive = __decorate([
    core_1.Directive({
        selector: 'tsMiscNg2'
    }),
    __metadata("design:paramtypes", [core_1.ElementRef, core_1.Injector])
], MiscNg2Directive);
exports.MiscNg2Directive = MiscNg2Directive;
angular.module(exports.moduleName, [])
    .component('tsMiscNg1', {
    template: require('./miscNg1.html'),
    controller: 'MiscTestController',
    controllerAs: 'misc',
})
    .component('tsMiscNg2', {
    template: require('./miscNg2.html'),
    controller: 'MiscTestController',
    controllerAs: 'misc',
})
    .controller('MiscTestController', MiscTestController);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlzY0Jvb3RzdHJhcHBlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm1pc2NCb290c3RyYXBwZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs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