mallorca-ng
TypeScript icon, indicating that this package has built-in type declarations

1.7.0 • Public • Published

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

Package Sidebar

Install

npm i mallorca-ng

Weekly Downloads

18

Version

1.7.0

License

MIT

Last publish

Collaborators

  • jrogalan