Installation
Basic Implementation
1. Import the Module
Add theSpaceModule
to your Angular module:
2. Create Component
Create a component to handle the Flatfile embed:3. Get Your Credentials
publishableKey: Get from Platform Dashboard → Developer Settings Authentication & Security: For production applications, implement proper authentication and space management on your server. See Advanced Configuration for authentication guidance.Complete Example
The example below will open an empty space. To create the sheet your users
should land on, you’ll want to create a workbook as shown further down this
page.
Creating New Spaces
To create a new Space each time:- Add a
workbook
configuration object. Read more about workbooks here. - Optionally deploy a
listener
for custom data processing. Your listener will contain your validations and transformations
Reusing Existing Spaces
For production applications, implement proper space management on your server to ensure security and proper access control:Configuration Options
For detailed configuration options, authentication settings, and advanced features, see the Advanced Configuration guide.Using Space Component Directly
You can also use theflatfile-space
component directly in your template:
TypeScript Support
The Angular SDK is built with TypeScript and includes full type definitions:Next Steps
- Advanced Configuration: Set up authentication, listeners, and advanced options
- Server Setup: Implement backend integration and space management
- Data Processing: Set up Listeners in your Space for custom data transformations
- API Integration: Use Flatfile API to retrieve processed data
- Angular SDK Documentation: See @flatfile/angular-sdk documentation
Quick Links
Advanced Configuration
Authentication, listeners, and advanced options
Server Setup
Backend integration and space management