@angular/material/button#MatButtonModule TypeScript Examples
The following examples show how to use
@angular/material/button#MatButtonModule.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: app.module.ts From gnosis.1inch.exchange with MIT License | 6 votes |
@NgModule({
declarations: [
AppComponent,
SlippageSettingsComponent,
GasSettingsComponent
],
imports: [
BrowserModule,
AppRoutingModule,
HttpClientModule,
BrowserAnimationsModule,
MatButtonModule,
MatSelectModule,
FormsModule,
ReactiveFormsModule,
MatInputModule,
MatFormFieldModule,
MatTooltipModule,
MatIconModule,
MatRadioModule,
NgxWebstorageModule.forRoot(),
MatAutocompleteModule,
NgxMatSelectSearchModule,
MatExpansionModule,
FontAwesomeModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
Example #2
Source File: app.module.ts From bdc-walkthrough with MIT License | 6 votes |
@NgModule({
declarations: [
AppComponent,
Example1Component,
Example2Component,
Example3Component,
Example4Component,
Example5Component,
Example6Component,
Example7Component
],
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
AppRoutingModule,
MatIconModule,
MatButtonModule,
MatCheckboxModule,
MatFormFieldModule,
MatInputModule,
MatDialogModule,
BdcWalkModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Example #3
Source File: app.module.ts From ngx-colors with MIT License | 6 votes |
@NgModule({
declarations: [
AppComponent,
CustomTriggerExampleComponent,
DocumentViewerComponent,
HideElementsExampleComponent,
CustomPaletteExampleComponent,
ChangeAcceptLabelExampleComponent
],
imports: [
HighlightModule,
BrowserModule,
ReactiveFormsModule,
BrowserAnimationsModule,
AppRoutingModule,
NgxColorsModule,
MatTabsModule,
FormsModule,
HttpClientModule,
MatInputModule,
MatSlideToggleModule,
MatButtonModule
],
providers: [
{
provide: HIGHLIGHT_OPTIONS,
useValue: {
languages: getHighlightLanguages()
}
}
],
bootstrap: [AppComponent]
})
export class AppModule { }
Example #4
Source File: app.module.ts From Collab-Blog with GNU General Public License v3.0 | 6 votes |
@NgModule({
declarations: [
AppComponent,
BlogListComponent,
AddBlogComponent,
NavbarComponent,
WelcomePageComponent,
ViewBlogComponent,
UpdateBlogComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
HttpClientModule,
ReactiveFormsModule,
MatButtonModule,
MatCardModule,
MatInputModule,
MatListModule,
MatToolbarModule,
MatSliderModule,
MatMenuModule,
MatFormFieldModule,
BrowserAnimationsModule,
FormsModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Example #5
Source File: app.module.ts From league-profile-tool with MIT License | 6 votes |
@NgModule({
declarations: [AppComponent, HomeComponent, StatusComponent, DialogComponent, ChibiComponent, BackgroundComponent, ChampionsPipe, ChatrankComponent, ChampionPurchaseDateComponent, CustomapiComponent, FaqComponent, CustomiconComponent, IconsPipe, PracticetoolComponent],
imports: [
BrowserModule,
FormsModule,
CoreModule,
AppRoutingModule,
MatTabsModule,
BrowserAnimationsModule,
MatCardModule,
MatButtonModule,
MatInputModule,
MatDialogModule,
MatSelectModule,
MatSortModule,
HttpClientModule,
],
providers: [ElectronService],
bootstrap: [AppComponent]
})
export class AppModule {
}
Example #6
Source File: app.component.spec.ts From TheHungryRecipesApp with GNU General Public License v3.0 | 6 votes |
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
HttpClientTestingModule,
RouterTestingModule,
MatToolbarModule,
MatIconModule,
MatMenuModule,
MatDividerModule,
MatButtonModule
],
declarations: [
AppComponent,
NavbarComponent
],
}).compileComponents();
}));
it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
});
it(`should have as title and brand name 'The Hungry Recipes'`, () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const app = fixture.debugElement.componentInstance;
const compiled = fixture.debugElement.nativeElement;
expect(app.title).toEqual('The Hungry Recipes');
expect(compiled.querySelector('a.brand').textContent).toEqual(app.title);
});
});
Example #7
Source File: app-material.module.ts From barista with Apache License 2.0 | 6 votes |
expose = [ BrowserAnimationsModule, MatButtonModule, MatButtonToggleModule, MatCardModule, MatDialogModule, MatGridListModule, MatIconModule, MatListModule, MatMenuModule, MatSidenavModule, MatSnackBarModule, MatTabsModule, MatToolbarModule, MatButtonModule, MatCardModule, MatGridListModule, MatIconModule, MatMenuModule, MatTreeModule, MatFormFieldModule, MatInputModule, MatSelectModule, MatOptionModule, MatProgressSpinnerModule, MatExpansionModule, MatTooltipModule, ]
Example #8
Source File: app.module.ts From Angular-Cookbook with MIT License | 6 votes |
@NgModule({
declarations: [
AppComponent,
DiceComponent,
ValueGuesserComponent,
GameComponent,
LeaderBoardComponent,
GameStepperComponent,
InstallablePromptComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
ReactiveFormsModule,
CdkStepperModule,
ServiceWorkerModule.register('ngsw-worker.js', {
enabled: environment.production,
// Register the ServiceWorker as soon as the app is stable
// or after 30 seconds (whichever comes first).
registrationStrategy: 'registerWhenStable:30000',
}),
BrowserAnimationsModule,
MatDialogModule,
MatButtonModule,
],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
Example #9
Source File: material.module.ts From App with MIT License | 6 votes |
modules = [ MatToolbarModule, MatRippleModule, MatIconModule, MatTooltipModule, MatButtonModule, MatDividerModule, MatFormFieldModule, MatInputModule, MatCheckboxModule, MatProgressSpinnerModule, MatProgressBarModule, MatPaginatorModule, MatDialogModule, MatMenuModule, MatRadioModule, MatDatepickerModule, MatNativeDateModule, MatExpansionModule, MatSelectModule, MatBadgeModule, MatChipsModule ]
Example #10
Source File: alert-list.module.ts From VIR with MIT License | 6 votes |
@NgModule({
declarations: [AlertListComponent],
imports: [
CommonModule,
MatTreeModule,
MatIconModule,
MatButtonModule,
MatDialogModule,
ItemDetailsModule,
ItemModule,
MatTooltipModule,
MatInputModule,
MatSlideToggleModule,
MatDividerModule,
FormsModule,
DragDropModule,
ScrollingModule,
MatButtonToggleModule,
QuotaRuleModule,
QuotaRuleDetailsModule,
MatMenuModule,
],
exports: [
AlertListComponent,
],
})
export class AlertListModule {
}
Example #11
Source File: app.module.ts From travel-list with MIT License | 6 votes |
@NgModule({
declarations: [
AppComponent,
TravelListComponent,
TravelTabsComponent,
NewComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
BrowserAnimationsModule,
HttpClientModule,
LayoutModule,
MatToolbarModule,
MatButtonModule,
MatSidenavModule,
MatIconModule,
MatListModule,
MatCardModule,
MatTabsModule,
MatDialogModule,
MatFormFieldModule,
MatInputModule,
FormsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
Example #12
Source File: banner-carousel.module.ts From nghacks with MIT License | 6 votes |
@NgModule({
declarations: [
BannerCarouselComponent,
ImageComponent
],
imports: [
CommonModule,
MatTabsModule,
MatIconModule,
MatButtonModule
],
providers: [
BannerCarouselService
],
exports: [
BannerCarouselComponent
]
})
export class BannerCarouselModule { }
Example #13
Source File: material.module.ts From router with MIT License | 6 votes |
@NgModule({
imports: [
MatInputModule,
MatCardModule,
MatButtonModule,
MatSidenavModule,
MatListModule,
MatIconModule,
MatToolbarModule,
MatProgressSpinnerModule,
MatDialogModule,
],
exports: [
MatInputModule,
MatCardModule,
MatButtonModule,
MatSidenavModule,
MatListModule,
MatIconModule,
MatToolbarModule,
MatProgressSpinnerModule,
MatDialogModule,
],
})
export class MaterialModule {}
Example #14
Source File: mat-fab-menu.module.ts From fab-menu with MIT License | 6 votes |
@NgModule({
declarations: [MatFabMenuComponent],
imports: [
CommonModule,
MatButtonModule,
MatIconModule,
MatTooltipModule,
FlexLayoutModule
],
exports: [MatFabMenuComponent]
})
export class MatFabMenuModule {
}
Example #15
Source File: app.module.ts From testube with GNU General Public License v3.0 | 6 votes |
@NgModule({
declarations: [
AppComponent,
DashComponent,
AboutComponent,
ToolbarComponent,
FooterComponent,
LogoComponent,
CardComponent,
DonateComponent,
DebugComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
BrowserAnimationsModule,
MatToolbarModule,
MatButtonModule,
MatCardModule,
MatSnackBarModule,
MatFormFieldModule,
MatInputModule,
MatSliderModule,
FormsModule,
MatTooltipModule,
MatIconModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Example #16
Source File: button.module.ts From ASW-Form-Builder with MIT License | 6 votes |
@NgModule({
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
MatInputModule,
MatSelectModule,
MatDialogModule,
MatSlideToggleModule,
MatDividerModule,
MatIconModule,
MatTooltipModule,
MatButtonModule,
AswConfirmDialogModule
],
declarations: [
AswButton,
AswButtonDialog
],
exports: [
AswButton,
AswButtonDialog
]
})
export class AswButtonModule { }
Example #17
Source File: admin.module.ts From budget-angular with GNU General Public License v3.0 | 6 votes |
@NgModule({
imports: [
CommonModule,
AdminRoutingModule,
MatToolbarModule,
MatTableModule,
MatCardModule,
MatButtonModule,
],
declarations: [AdminComponent],
providers: [AdminService],
})
export class AdminModule {}
Example #18
Source File: app.module.ts From RoboScan with GNU General Public License v3.0 | 6 votes |
@NgModule({
declarations: [
AppComponent,
AlertDialogComponent,
DockerDialogComponent,
SambaDialogComponent,
RsyncDialogComponent,
CaptureOneDialogComponent
],
imports: [
HttpClientModule,
BrowserModule,
BrowserAnimationsModule,
FormsModule,
ReactiveFormsModule,
MatToolbarModule,
MatStepperModule,
MatButtonModule,
MatIconModule,
MatFormFieldModule,
MatDialogModule,
MatMenuModule,
MatDividerModule,
MatAutocompleteModule,
MatInputModule,
MatSelectModule,
MatButtonToggleModule,
MatExpansionModule,
MatSlideToggleModule,
SocketIoModule.forRoot(config),
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Example #19
Source File: app.module.ts From qbit-matUI with MIT License | 6 votes |
@NgModule({
declarations: [
AppComponent,
LoginPageComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
RouterModule.forRoot(appRoutes, { relativeLinkResolution: 'legacy' }),
AppRoutingModule,
HttpClientModule,
MatCardModule,
MatFormFieldModule,
MatInputModule,
FormsModule,
ReactiveFormsModule,
MatButtonModule,
MatSlideToggleModule,
MatIconModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Example #20
Source File: material.module.ts From bitcoin-s-ts with MIT License | 6 votes |
materialModules = [
MatBottomSheetModule,
MatButtonModule,
MatCheckboxModule,
MatDatepickerModule,
MatDialogModule, // For focus
MatFormFieldModule,
MatIconModule,
MatInputModule,
MatMenuModule,
MatNativeDateModule,
MatOptionModule,
MatProgressSpinnerModule,
MatSelectModule,
MatSidenavModule,
MatSlideToggleModule,
MatSnackBarModule,
MatSortModule,
MatProgressSpinnerModule,
MatRadioModule,
MatTableModule,
MatTooltipModule,
]
Example #21
Source File: _module.stories.ts From angular-component-library with BSD 3-Clause "New" or "Revised" License | 6 votes |
storiesOf(`${COMPONENT_SECTION_NAME}/App Bar`, module)
.addDecorator(
moduleMetadata({
imports: [
AppBarModule,
ThreeLinerModule,
BrowserAnimationsModule,
ChannelValueModule,
MatIconModule,
MatFormFieldModule,
UtilModule,
MatButtonModule,
MatSelectModule,
MatInputModule,
MatMenuModule,
MatListModule,
],
})
)
.addDecorator(withKnobs)
// @accessibility
.addDecorator(withA11y)
.addDecorator(appBarWrapper())
.addDecorator(storyWrapper())
.addParameters({
...STORY_PARAMS,
notes: { markdown: getReadMe('AppBar.md') },
})
.add(README_STORY_NAME, getReadMeStory)
.add(WITH_MIN_PROPS_STORY_NAME, withBasicConfig)
.add('with variants', withVariants)
.add('with dynamic content', withDynamicContent)
.add('with ng-content', withNgContent)
.add('with full config', withFullConfig);
Example #22
Source File: app.module.ts From careydevelopmentcrm with MIT License | 6 votes |
@NgModule({
declarations: [
AppComponent,
MenuListItemComponent,
FeaturesComponent,
ConfirmationDialogComponent
],
imports: [
BrowserModule,
FlexLayoutModule,
HttpClientModule,
AppRoutingModule,
BrowserAnimationsModule,
MatToolbarModule,
MatSidenavModule,
MatListModule,
MatIconModule,
MatDialogModule,
MatButtonModule,
MatNativeDateModule,
BreadcrumbModule,
UserModule.forRoot({ baseUrl: environment.baseUserServiceUrl }),
AuthModule.forRoot({ baseUrl: environment.baseUserServiceUrl }),
GeoModule.forRoot({ baseUrl: environment.baseGeoServiceUrl }),
ValidationModule.forRoot({ fieldSummaries : allFieldSummaries })
],
providers: [
{ provide: HTTP_INTERCEPTORS, useClass: JwtInterceptor, multi: true },
{ provide: HTTP_INTERCEPTORS, useClass: HttpErrorInterceptor, multi: true }
],
bootstrap: [AppComponent]
})
export class AppModule { }
Example #23
Source File: coveo.components.module.ts From cli with Apache License 2.0 | 6 votes |
@NgModule({
declarations: [
ErrorComponent,
FacetComponent,
FacetListComponent,
PagerComponent,
QuerySummaryComponent,
ResultListComponent,
ResultLinkComponent,
SearchBoxComponent,
SearchPageComponent,
SortComponent,
HeroComponent,
HomeComponent,
],
imports: [
BrowserModule,
MatAutocompleteModule,
MatFormFieldModule,
ReactiveFormsModule,
MatInputModule,
MatListModule,
MatPaginatorModule,
MatSelectModule,
MatButtonModule,
],
providers: [InitProvider],
})
export class CoveoComponentsModule {}
Example #24
Source File: json-schema-form.module.ts From json-schema-form with Apache License 2.0 | 6 votes |
@NgModule({
declarations: [JsonSchemaFormComponent, EditElementDialogComponent, WidgetDirective],
imports: [
MatCardModule,
FlexLayoutModule,
MatIconModule,
MatTooltipModule,
MatTableModule,
MatTabsModule,
MatFormFieldModule,
MatSelectModule,
MatDatepickerModule,
MatCheckboxModule,
MatAutocompleteModule,
HttpClientModule,
CommonModule,
MatInputModule,
MatNativeDateModule,
MatButtonModule,
MatExpansionModule,
MatMenuModule,
ReactiveFormsModule,
MatDialogModule,
MatChipsModule,
DragDropModule
],
exports: [JsonSchemaFormComponent],
providers: [
// turn off tooltip gestures on mobile: https://github.com/angular/components/issues/4892
{ provide: MAT_TOOLTIP_DEFAULT_OPTIONS, useValue: { touchGestures: 'off' } },
{ provide: EDIT_DIALOG_TOKEN, useValue: EditElementDialogComponent }
]
})
export class JsonSchemaFormModule { }
Example #25
Source File: app.module.ts From angular-9-coronavirus-cases-app with MIT License | 6 votes |
@NgModule({
declarations: [
AppComponent,
CasesComponent,
CasesDetailsComponent,
AddCasesComponent,
EditCasesComponent,
CasesStatComponent
],
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
AppRoutingModule,
BrowserAnimationsModule,
MatInputModule,
MatPaginatorModule,
MatProgressSpinnerModule,
MatSortModule,
MatTableModule,
MatIconModule,
MatButtonModule,
MatCardModule,
MatFormFieldModule,
MatSliderModule,
MatSlideToggleModule,
MatButtonToggleModule,
MatSelectModule,
ChartsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Example #26
Source File: app.module.ts From mean-stack-angular-9-realtime-crud with MIT License | 6 votes |
@NgModule({
declarations: [
AppComponent,
SalesComponent,
SalesDetailsComponent,
AddSalesComponent,
EditSalesComponent
],
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
AppRoutingModule,
BrowserAnimationsModule,
MatInputModule,
MatPaginatorModule,
MatProgressSpinnerModule,
MatSortModule,
MatTableModule,
MatIconModule,
MatButtonModule,
MatCardModule,
MatFormFieldModule,
ChartsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Example #27
Source File: app.module.ts From material-reusable-table with Apache License 2.0 | 6 votes |
@NgModule({
declarations: [
AppComponent,
OrdersComponent,
TableComponent,
DataPropertyGetterPipe,
CustomersComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
MatTableModule,
MatFormFieldModule,
MatInputModule,
MatPaginatorModule,
MatSortModule,
MatIconModule,
MatButtonModule,
MatTabsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
Example #28
Source File: material.module.ts From mysql_node_angular with MIT License | 6 votes |
myModules = [ MatToolbarModule, MatSidenavModule, MatButtonModule, MatMenuModule, MatListModule, MatIconModule, MatInputModule, MatCardModule, MatTableModule, MatSortModule, MatDialogModule, MatOptionModule, MatSelectModule, ]
Example #29
Source File: dxc-dropdown.module.ts From halstack-angular with Apache License 2.0 | 6 votes |
@NgModule({
declarations: [
DxcDropdownComponent,
DxcDropdownOptionComponent,
DxcDropdownIconComponent,
],
imports: [CommonModule, MatMenuModule, MatButtonModule],
exports: [
DxcDropdownComponent,
DxcDropdownOptionComponent,
DxcDropdownIconComponent,
],
})
export class DxcDropdownModule {}