An Angular library with common recipes (components, directives, pipes, services, etc) for your apps. Compatible with AoT and compilation & Tree shaking.
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 available at Docs
Editable sample app available at Live demo
System.config({
map: {
'mallorca-ng': 'node_modules/mallorca-ng/bundles/mallorca-ng.umd.js'
}
});
No need to set up anything, just import it in your code.
No need to set up anything, just import it in your code.
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.
This library is compatible with AoT compilation & Server Side Rendering. It also supports the strict
TypeScript compiler option.
It would be awesome if you would like to contribute code or help with bugs. Just follow the guidelines CONTRIBUTING.
- Library starter by Roberto Simonetti Allows you to create a library for Angular 5+ apps
MIT