You can install this package with npm
:
$ npm install angular-parentchild
Then add parentchild
as a dependency for your application:
import parentchild from 'angular-parentchild';
angular.module('myApplication', [parentchild]);
Or as a <script>
tag into your index.html
file:
<script src="node_modules/angular-parentchild/build/angular-parentchild.es5.js"></script>
<script src="node_modules/angular-arithmetic/build/angular-arithmetic.es5.js"></script>
This module exposes two parent
and child
components available for html inclusion
<!-- parent component -->
<parent name="string" children="string[]">
<!-- child component -->
<child name="string" on-call="expression()">
ISC License
Copyright (c) 2017, Yann LOJEWSKI
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.