Skip to content

Angular library with common recipes (components, directives, pipes, services, animations, etc)

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
license-banner.txt
Notifications You must be signed in to change notification settings

MallorcaJS/mallorca-ng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MallorcaJS logo

build status npm coveralls commitizen friendly semantic-release styled with prettier license

What is MallorcaNG?

An Angular library with common recipes (components, directives, pipes, services, etc) for your apps. Compatible with AoT and compilation & Tree shaking.

Getting Started

You can add mallorca-ng to your project using npm:

npm install mallorca-ng --save 

To install the pre-release package:

npm install --save mallorca-ng@next
// app.module.ts
import { MallorcaCommonModule } from 'mallorca-ng';

@NgModule({
    // ...
    imports: [
        MallorcaCommonModule.forRoot()        
    ]
}
export class AppModule { }

Documentation

Documentation available at Docs

Demo

Editable sample app available at Live demo

Loading

Using SystemJS configuration

System.config({
    map: {
        'mallorca-ng': 'node_modules/mallorca-ng/bundles/mallorca-ng.umd.js'
    }
});

Angular CLI

No need to set up anything, just import it in your code.

Rollup or webpack

No need to set up anything, just import it in your code.

Plain JavaScript

If you build apps in Angular using ES5, you can include the umd bundle in your index.html:

<script src="node_modules/mallorca-ng/bundles/mallorca-ng.umd.js"></script>

and use global ng.mallorcaNG namespace.

AoT compilation, Server Side Rendering & strict

This library is compatible with AoT compilation & Server Side Rendering. It also supports the strict TypeScript compiler option.

Contribute

It would be awesome if you would like to contribute code or help with bugs. Just follow the guidelines CONTRIBUTING.

Aditional Resources

License

MIT