Skip to content

Instantly share code, notes, and snippets.

@zxqx
Created April 13, 2015 21:59
Show Gist options
  • Save zxqx/63d7a1b703258661d2cc to your computer and use it in GitHub Desktop.
Save zxqx/63d7a1b703258661d2cc to your computer and use it in GitHub Desktop.
import htmlLoginForm from './login-form.html';
export default class LoginForm
{
constructor()
{
this.template = htmlLoginForm;
}
link(scope, elem, attrs)
{
}
/**
* Provide an instance of the directive
*/
static directiveFactory()
{
LoginForm.instance = new LoginForm();
return LoginForm.instance;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment