How to use the @angular2-material/button.MD_BUTTON_DIRECTIVES function in @angular2-material/button

To help you get started, we’ve selected a few @angular2-material/button examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JacekKosciesza / InvestSystemsOrg / client / web / app / +stocks / stock-detail.component.js View on Github external
});
    };
    StockDetailComponent.prototype.edit = function (stock) {
        var _this = this;
        stock.subscribe(function (stock) {
            var link = ['/stock-exchanges', stock.id, 'edit']; // TODO: check if this is the right way to create link like that
            _this.router.navigate(link);
        });
    };
    StockDetailComponent = __decorate([
        core_1.Component({
            moduleId: module.id,
            selector: 'stock-detail',
            templateUrl: 'stock-detail.component.html',
            styleUrls: ['stock-detail.component.css'],
            directives: [router_1.ROUTER_DIRECTIVES, button_1.MD_BUTTON_DIRECTIVES, icon_1.MdIcon]
        }), 
        __metadata('design:paramtypes', [stock_service_1.StockService, router_1.ActivatedRoute, router_1.Router, platform_browser_1.Title])
    ], StockDetailComponent);
    return StockDetailComponent;
}());
exports.StockDetailComponent = StockDetailComponent;
github JacekKosciesza / InvestSystemsOrg / client / web / app / +contact / contact.component.js View on Github external
this.submitted = true;
        this.messages.push(this.message);
    };
    Object.defineProperty(ContactComponent.prototype, "diagnostic", {
        // TODO: Remove this when we're done
        get: function () { return JSON.stringify(this.message); },
        enumerable: true,
        configurable: true
    });
    ContactComponent = __decorate([
        core_1.Component({
            moduleId: module.id,
            selector: 'contact-us',
            templateUrl: 'contact.component.html',
            styleUrls: ['contact.component.css'],
            directives: [button_1.MD_BUTTON_DIRECTIVES, card_1.MD_CARD_DIRECTIVES, icon_1.MD_ICON_DIRECTIVES, input_1.MD_INPUT_DIRECTIVES]
        }), 
        __metadata('design:paramtypes', [angularfire2_1.AngularFire])
    ], ContactComponent);
    return ContactComponent;
}());
exports.ContactComponent = ContactComponent;
github JacekKosciesza / InvestSystemsOrg / client / web / app / +stocks / stock-edit.component.js View on Github external
});
            }
        });
    };
    StockEditComponent.prototype.cancel = function () {
    };
    StockEditComponent.prototype.save = function (newName) {
        this.stockService.updategetStockExchange(this.stockFirebaesObject, { name: newName });
    };
    StockEditComponent = __decorate([
        core_1.Component({
            moduleId: module.id,
            selector: 'stock-edit',
            templateUrl: 'stock-edit.component.html',
            styleUrls: ['stock-edit.component.css'],
            directives: [button_1.MD_BUTTON_DIRECTIVES, input_1.MD_INPUT_DIRECTIVES, icon_1.MdIcon]
        }), 
        __metadata('design:paramtypes', [stock_service_1.StockService, router_1.ActivatedRoute, platform_browser_1.Title])
    ], StockEditComponent);
    return StockEditComponent;
}());
exports.StockEditComponent = StockEditComponent;
github JacekKosciesza / InvestSystemsOrg / client / web / app / +stocks / stocks-list.component.js View on Github external
};
    StocksListComponent.prototype.gotoDetail = function (stock) {
        var link = ['/stock-exchanges', stock.id];
        this.router.navigate(link);
    };
    StocksListComponent.prototype.add = function () {
        var link = ['/stock-exchanges/create'];
        this.router.navigate(link);
    };
    StocksListComponent = __decorate([
        core_1.Component({
            moduleId: module.id,
            selector: 'stocks-list',
            templateUrl: 'stocks-list.component.html',
            styleUrls: ['stocks-list.component.css'],
            directives: [grid_list_1.MD_GRID_LIST_DIRECTIVES, button_1.MD_BUTTON_DIRECTIVES, icon_1.MdIcon]
        }), 
        __metadata('design:paramtypes', [stock_service_1.StockService, router_1.Router, platform_browser_1.Title])
    ], StocksListComponent);
    return StocksListComponent;
}());
exports.StocksListComponent = StocksListComponent;
github JacekKosciesza / InvestSystemsOrg / client / web / app / app.component.js View on Github external
}
    AppComponent.prototype.ngOnInit = function () {
        window.addEventListener('online', this.updateOnlineOfflineIndicator);
        window.addEventListener('offline', this.updateOnlineOfflineIndicator);
        this.updateOnlineOfflineIndicator();
    };
    AppComponent.prototype.login = function () {
        this.af.auth.login();
    };
    AppComponent = __decorate([
        core_1.Component({
            moduleId: module.id,
            selector: 'invest-systems-org',
            templateUrl: 'app.component.html',
            styleUrls: ['app.component.css'],
            directives: [sidenav_1.MD_SIDENAV_DIRECTIVES, router_1.ROUTER_DIRECTIVES, toolbar_1.MdToolbar, button_1.MD_BUTTON_DIRECTIVES, icon_1.MdIcon, spinner_component_1.SpinnerComponent],
            providers: [
                ,
                store_1.provideStore({ areas: area_reducer_1.areasReducer }),
            ]
        }), 
        __metadata('design:paramtypes', [angularfire2_1.AngularFire])
    ], AppComponent);
    return AppComponent;
}());
exports.AppComponent = AppComponent;