0.5.1 • Published 6 years ago

@irontec/anvil-angular v0.5.1

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

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
0.5.1

6 years ago

0.5.0

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.5

6 years ago

0.3.2

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.1

7 years ago