All Projects → mseemann → Angular2 Mdl

mseemann / Angular2 Mdl

Licence: mit
Angular 2, 4, 5, 6, 7, 8, 9, 10, 11 components, directives and styles based on material design lite (npm: @angular-mdl/core)

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Angular2 Mdl

Ionic Audio
An audio player for Ionic 3 and Angular 4. Works with HTML 5 audio or native audio using Cordova Media plugin.
Stars: ✭ 332 (-40.93%)
Mutual labels:  angular2, angular4, angular5
Ngx Monaco Editor
Monaco Editor component for Angular 2 and Above
Stars: ✭ 347 (-38.26%)
Mutual labels:  angular2, angular4, angular5
Angular4-seed
Angular 4 Seed for Angular Forms
Stars: ✭ 37 (-93.42%)
Mutual labels:  angular2, angular4, angular5
spring-websocket-angular6
Example for using Spring Websocket and Angular with Stomp Messaging
Stars: ✭ 18 (-96.8%)
Mutual labels:  angular2, angular4, angular5
ionic-modal-custom-transitions
Add Custom Transitions to Ionic Modals.
Stars: ✭ 22 (-96.09%)
Mutual labels:  angular2, angular4, angular5
Ng Snotify
Angular 2+ Notification Center
Stars: ✭ 304 (-45.91%)
Mutual labels:  angular2, angular4, angular5
angular-landing-page
Beautiful Angular landing page with firebase, chat, poll, dynamic features/gallary, and nice animations/scrolling.
Stars: ✭ 43 (-92.35%)
Mutual labels:  angular2, angular4, angular5
Angular5 Example Shopping App
Angular 5 Example Shopping App + Angular Material + Responsive
Stars: ✭ 120 (-78.65%)
Mutual labels:  material-design, angular2, angular5
angular-progress-bar
This component allow you to easy incorporate progress-bar to angular/ionic project, providing binding and color options
Stars: ✭ 26 (-95.37%)
Mutual labels:  angular2, angular4, angular5
ng2-timezone-selector
A simple Angular module to create a timezone selector using moment-timezone.
Stars: ✭ 12 (-97.86%)
Mutual labels:  angular2, angular4, angular5
Ng Http Loader
🍡 Smart angular HTTP interceptor - Intercepts automagically HTTP requests and shows a spinkit spinner / loader / progress bar
Stars: ✭ 327 (-41.81%)
Mutual labels:  angular2, angular4, angular5
Angular Material App
基于最新Angular 9框架与Material 2技术的web中后台前端应用框架。
Stars: ✭ 509 (-9.43%)
Mutual labels:  angular2, angular4, angular5
ngx-redux-core
The modern redux integration for Angular 6+
Stars: ✭ 32 (-94.31%)
Mutual labels:  angular2, angular4, angular5
Angular2 Toaster
Angular2-toaster is an asynchronous, non-blocking Angular Toaster Notification library
Stars: ✭ 333 (-40.75%)
Mutual labels:  angular2, angular4, angular5
AuthGuard
Example repo for guarding routes post
Stars: ✭ 42 (-92.53%)
Mutual labels:  angular2, angular4, angular5
ng-toggle
Bootstrap-styled Angular Toggle Component
Stars: ✭ 14 (-97.51%)
Mutual labels:  angular2, angular4, angular5
Ng Select
⭐ Native angular select component
Stars: ✭ 2,781 (+394.84%)
Mutual labels:  angular2, angular4, angular5
Bootstrap
Open Source JS plugins
Stars: ✭ 13 (-97.69%)
Mutual labels:  material-design, angular2, angular4
angular-rollbar-source-maps
Angular 2+ implementation to upload sourcemaps to Rollbar
Stars: ✭ 17 (-96.98%)
Mutual labels:  angular2, angular4, angular5
ngx-smart-loader
Smart loader handler to manage loaders everywhere in Angular apps.
Stars: ✭ 28 (-95.02%)
Mutual labels:  angular2, angular4, angular5

Angular 11 components, directives and styles based on material design lite https://getmdl.io (v: 1.3.0). This package assumes that you are building an Angular app with TypeScript. Angular CLI makes it even easier but isn't required.

Build Status CircleCI npm version Downloads Coverage Status Code Climate FOSSA Status

Status of the npm package version 11 (mdl version 1.3.0; angular 11)

  • Badges
  • Buttons
  • Cards
  • Chips
  • Dialogs (imperative and declarative)
  • Icons
  • Loading
  • Shadow
  • Toggle (Checkbox, Radio, Icon Toggle, Switch)
  • Lists
  • Slider
  • Snackbar
  • Table
  • Tooltips
  • Menu
  • Layout (standard, scroll, waterfall, tabs)
  • Tabs
  • Textfields (multiline, expandable)

Installation

npm install @angular-mdl/core --save

css from material-design-lite

You may include the material-design-lite css in your html and you're done!


<link rel="stylesheet" href="https://code.getmdl.io/1.1.3/material.indigo-pink.min.css"/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

Under http://mseemann.io/angular2-mdl/theme you'll find a customizing tool to change the theme colors.

How to use the scss files from material-design-lite

This package includes the scss files from material-design-lite. With these files you are able to change the colors and other variables in your own scss files:

@import "[email protected]/core/scss/color-definitions";

$color-primary: $palette-blue-500;
$color-primary-dark: $palette-blue-700;
$color-accent: $palette-amber-A200;
$color-primary-contrast: $color-dark-contrast;
$color-accent-contrast: $color-dark-contrast;

@import '[email protected]/core/scss/material-design-lite';

To make this working you need to find out the way how you could tell your build system where the scss is located. For example with webpack you can use the special [email protected]/core syntax used above. Or you can configure the includePaths:

sassLoader: {
  includePaths: [util.root('node_modules', '@angular-mdl/core', 'scss')]
}

@angular-mdl/*

Additional components for @angular-mdl/core that are not part of material design lite

  • current angular version: 11
  • current angular-mdl version: 11

The components

Name Provided By Description npm documentation status demo
datepicker mseemann a simple date picker npm version readme experimental demo
expansion-panel abdulqadir93 organise arbitrary content in an expansion panel npm version readme experimental demo
fab-menu leojpod a fab menu component npm version readme experimental demo
popover tb popover with arbitrary content npm version readme experimental demo
select tb a select box npm version readme experimental demo

These components support AOT and TreeShaking!

How to use the components

Install the components via npm. Please check out the individual readme for each component from the table above.

Starting with version 0.2.0 the components each have no css styles imported by default. You need to setup your build pipeline to include the scss files from each component you want to use. This makes it possible to configure the theming for the components you want to use.

If you are using webpack you may use the special webpack import syntax for node_modules:

@import '[email protected]/core/scss/color-definitions';

$color-primary: $palette-blue-500;
$color-primary-dark: $palette-blue-700;
$color-accent: $palette-amber-A200;
$color-primary-contrast: $color-dark-contrast;
$color-accent-contrast: $color-dark-contrast;

@import '[email protected]/core/src/scss-mdl/material-design-lite';

@import '[email protected]/popover/popover';
@import '[email protected]/select/select';

Another way is to include each component folder in the search path for your scss preprocessor. An example for webpack:

sassLoader: {
	includePaths: [
		'node_modules/@angular-mdl/popover',
		'node_modules/@angular-mdl/select'
	]
}

Development

  • npm start - local dev server
  • npm build - build a production release
  • npm test - run the unit tests

The coverage report is stored under: coverage/coverage-remap/index.html

Contributing

Every contribution is welcome. Please checkout the CONTRIBUTION.md file.

Remarks

And if you would like to see a real world app that uses this package have a look at https://www.yovelino.de/apps/tour-planner/.

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].