mallorca-ng
v1.7.0
Published
This is a library of common Angular recipes (components, directives, services, pipes, etc)
Downloads
65
Maintainers
Readme
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
- Library starter by Roberto Simonetti Allows you to create a library for Angular 5+ apps
License
MIT