3 ms·
how do you can use it in angular (2)?
by dehef 9y ago
how do you can use it in angular (2)?
- blauditore 9y agoThe functionality is simple and mostly based on CSS, so just set relevant attributes in your template and toggle 'aria-expanded' on click as in the JS file[1]. Then, include (S)CSS copy which handles resizing based on above attribute[2]. All files other than those in src/ are just processing fluff and irrelevant for the actual functionality. [1]: https://github.com/charlestati/amplify/blob/master/src/amplify.js https://github.com/charlestati/amplify/blob/master/src/ampli... [2]: https://github.com/charlestati/amplify/blob/master/src/amplify.scss https://github.com/charlestati/amplify/blob/master/src/ampli...