Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

FormioResource Provider

Travis Tidwell edited this page Jan 13, 2017 · 18 revisions

The FormioResource provider allows you to register your Form.io Resources so that all of your UI Router CRUD states will be registered for you. There are 5 main states that you need to be concerned with when working with the FormioResource provider.

  • Index: This is the view which shows all of the submissions for a Resource within Form.io. This view by default is provided by the ngFormioGrid library.
  • Create: This state is the "C" in CRUD which is used to create a new resource record (also called Submission in Form.io). This will render the form for that resource.
  • Abstract: This state is used as the resource instance container for the Read, Update, and Delete states. It provides the overarching controller which loads the resource instance and provides that resource instance to all of the sub states. This is a UI Router abstract state, which means you cannot actually navigate to this state, but rather just serves as the container for the Read, Update, and Delete states within it.
  • Read: This state provides the "view" of the resource submission.
  • Update: This state provides the means to update the resource submission.
  • Delete: This state provides the ability to delete the resource submission.
Clone this wiki locally