This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function cuilValidator(cuil: string): boolean { | |
| if (cuil.length !== 11) { | |
| return false; | |
| } | |
| const [checkDigit, ...rest] = cuil | |
| .split('') | |
| .map(Number) | |
| .reverse(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <aura:component implements="flexipage:availableForAllPageTypes" access="global"> | |
| <div style="padding: 20px;background: white;margin: 10px;border-radius: 4px;height: 120px;"> | |
| <h1 style="font-size: 15px;">Aura Component: Firing Event</h1> | |
| <c:registerEvent name="testevent" namespace="astro" aura:id="first-event"></c:registerEvent> | |
| <lightning:button label="Fire Event From Aura" onclick="{!c.fireEvent}"></lightning:button> | |
| </div> | |
| </aura:component> |