@coderbase/templates
v0.0.2
Published
Library with Zero Dependency except Angular
Downloads
7
Readme
@coderbase/templates
Library with Zero Dependency except Angular
Provide Multiples Design Page Templates Reusable
Installation :package:
NPM
npm install --save @coderbase/templates
YARN
yarn add @coderbase/templates --save
Usage
Import CoderbaseTemplatesModule
- Add CoderbaseTemplatesModule in your ***.module.ts:
import {CoderbaseTemplatesModule} from '@coderbase/templates';
@NgModule({
...
import: [..., CoderbaseTemplatesModule]
})
- Use it in your HTML elements, for example in your ***.component.html:
<coderbase-template-a>
<div> Transclusion Content</div>
</coderbase-template-a>
OR
<coderbase-template-b>
<div> Transclusion Content</div>
</coderbase-template-b>
Options
<coderbase-template-a [title]='titleVariable'>
<div> Transclusion Content</div>
</coderbase-template-a>
OR
<coderbase-template-b title="My Title">
<div> Transclusion Content</div>
</coderbase-template-b>
Browser Support Tested:
- Chrome
- Firefox
- Safari
Responsive Support Tested:
- Iphone 5+
- Ipad
Made with :heart: by Pierre et Christophe