May 2018
Intermediate to advanced
512 pages
11h 3m
English
Now, let's implement a multi-step input form to capture user profile information. We will also make this multi-step form responsive for mobile devices using media queries.
src/app/user/profile/data.tsexport interface IUSState { code: string name: string}export function USStateFilter(value: string): IUSState[] { return USStates.filter(state => { return ( (state.code.length === 2 && state.code.toLowerCase() === value.toLowerCase()) || state.name.toLowerCase().indexOf(value.toLowerCase()) === 0 ) })}export enum PhoneType { Mobile, Home, Work,}const USStates = [ { code: 'AK', name: 'Alaska' ...Read now
Unlock full access