@irontec/anvil-angular

0.5.1 • Public • Published

anvil-angular

Angular services for anvil enviroment.

v0.0.* > Anvil

v0.1.0 > Anvil²

Usage

 angular
    .module('yourapp', ['angular-anvil'])
    .run(function runBlock(
        $log, $state, $rootScope,
        hub, nativeInterface
    ) {

    hub.on('init', function(env) {
        $rootScope.$broadcast('hub:init', env);
        nativeInterface.showMenuHeader();
    });

Available method from native >> JS (hub)

  • init(env)
  • resume(env)
  • notifiyEnviroment(env)
  • menuHeaderAction(env)
  • menuItemAction(env)
  • menuOpened(env)
  • menuClosed(env)
  • headerLeftButtonAction(env)
  • headerRightButtonAction(env)
  • showPushNotification(env)

Available method JS >> native (nativeInterface)

  • setTitle
  • showLoading
  • hideLoading
  • openInBrowser
  • openExternalApp
  • setReauthConfiguration
  • setWidgetConfiguration
  • setLanguage
  • requestEnviroment
  • showMenu
  • hideMenu
  • showHeader
  • hideHeader
  • showMenuSection
  • hideMenuSection
  • showMenuItem
  • hideMenuItem
  • showMenuHeader
  • hideMenuHeader
  • showHeaderLeftButton
  • hideHeaderLeftButton
  • showHeaderRightButton
  • hideHeaderRightButton

Readme

Keywords

none

Package Sidebar

Install

npm i @irontec/anvil-angular

Weekly Downloads

0

Version

0.5.1

License

ISC

Unpacked Size

37.7 kB

Total Files

11

Last publish

Collaborators