/**
  * Sets up theme defaults and registers support for various WordPress features.
  *
  * Note that this function is hooked into the after_setup_theme hook, which
  * runs before the init hook. The init hook is too late for some features, such
  * as indicating support for post thumbnails.
  */
 function navigator_setup()
 {
     /**
      * Angular classes
      */
     require get_template_directory() . '/inc/angular-enqueue.php';
     /*
      * Let WordPress manage the document title.
      * By adding theme support, we declare that this theme does not use a
      * hard-coded <title> tag in the document head, and expect WordPress to
      * provide it for us.
      */
     add_theme_support('title-tag');
     /*
      * Enable support for Post Thumbnails on posts and pages.
      *
      * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
      */
     add_theme_support('post-thumbnails');
     // This theme uses wp_nav_menu() in one location.
     register_nav_menus(array('primary' => esc_html__('Primary Menu', 'navigator')));
     register_nav_menus(array('footer' => esc_html__('Footer Menu', 'navigator')));
     // Set up the WordPress core custom background feature.
     add_theme_support('custom-background', apply_filters('navigator_custom_background_args', array('default-color' => 'ffffff', 'default-image' => '')));
     // Angular App setup
     $angularScripts = new angular_enqueue();
     $angularScripts->init();
 }
 function init()
 {
     add_action('init', array($this, 'register_my_menus'));
     add_action('init', array($this, 'register_my_sidebar'));
     add_action('after_setup_theme', array($this, 'add_awesome_theme_support'));
     add_action('admin_init', array($this, 'apiCheck'));
     $angularScripts = new angular_enqueue();
     $angularScripts->init();
     $ang_routes = new angular_theme_routes();
     $ang_routes->__init();
 }