How do I include my library on the page? I have an Angular app I want to use as a Drupal 8 theme but when I try to attach it with a YAML file, Drupal doesn't register that any JavaScript is being added to the theme.

ng.libraries.yml

base:
  version: 8.x
  css:
    css/styles.09e76a721be8ced0c439.bundle.css: {}
  js:
    js/inline.6375acbd4540ff168f58.bundle.js: {}
    js/polyfills.62cd0a749311c6ac36ca.bundle.js: {}
    js/vendor.d8949c111a4a3560f92d.bundle.js: {}
    js/vendor.d8949c111a4a3560f92d.bundle.js: {}


However, when I reference the script locations directly in my template, it works fine:

html.html.twig

&lt;!DOCTYPE html&gt;
&lt;html{{ html_attributes }}&gt;
  &lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
    &lt;title&gt;Hand of Death&lt;/title&gt;
    &lt;link href="themes/ng/dist/styles.09e76a721be8ced0c439.bundle.css" rel="stylesheet" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;app-root&gt;&lt;/app-root&gt;
    &lt;script type="text/javascript" src="themes/ng/js/inline.cad96cf6be5b6cfb5176.bundle.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="themes/ng/js/polyfills.62cd0a749311c6ac36ca.bundle.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="themes/ng/js/vendor.d8949c111a4a3560f92d.bundle.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="themes/ng/js/main.665799e3572bc9816ad1.bundle.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;


From what little I can make sense out of the docs, somewhere I'm going to have to call Drupal.behaviors.myBehavior, but that would not actually work in my situation.

Is there a way to get JavaScript to work without hardcoding it in the template?

EDIT: I've reverted this to the original so the corrections make sense to future users and went ahead and opened a new question with the most recent code.
So you defined a custom library that includes CSS and JavaScript. This is done by creating the ng.libraries.yml file and adding the base library definition.

Next, you need to tell Drupal to include this library and attach it to all the pages, if your ng theme is used for rendering the output. You can do so by adding a libraries section to your theme's ng.info.yml file:

libraries:
  - 'ng/base'


After clearing your caches, the library should be included.

Additionally, you may want to have a check for the syntax of the .libraries.yml file. CSS inclusion should follow the syntax:

css:
  theme:
    css/styles.09e76a721be8ced0c439.bundle.css: {}


Observe the theme part.

EDIT:

After you also added your html.html.twig template, another issue seems a missing js-bottom-placeholder tag. It will be replaced by any JavaScript that is not attached to the head region:

&lt;js-bottom-placeholder token="{{ placeholder_token }}"&gt;