Improve this doc View source

spLoginForm
directive in module stormpath

Description

This directive will render a pre-built login form with all the necessary fields. After the login is a success, the following will happen:

  • The $authenticated event will be fired.
  • If you have configured the UI Router Integration, the following can happen:
    • The user is sent back to the view they originally requested.
    • The user is sent to a default view of your choice.

Usage

as attribute
<ANY sp-login-form
     template-url="{string}">
   ...
</ANY>

Parameters

ParamTypeDetails
template-urlstring

An alternate template URL if you want to use your own template for the form.

Example

<!-- If you want to use the default template -->
<div class="container">
  <div sp-login-form></div>
</div>

<!-- If you want to use your own template -->
<div class="container">
  <div sp-login-form template-url="/path/to/my-custom-template.html"></div>
</div>