Как вставить HTML-код в компонент Angular 8? - PullRequest
0 голосов
/ 29 сентября 2019
<!DOCTYPE html>

<html>
  <head>

  </head>
  <body>

    <div>
      <form method="POST" action="https://androidapp-27shd.firebaseapp.com/api/send">
        <div>
            <label for="token">Token</label><br />
            <input type="text" name="token" id="token" placeholder="utf7"   </div>
        <div>
          <label for="title">Title</label><br />
          <input type="text" name="title" id="title" placeholder="Hey there this is a nice notification"/>
        </div>
        <div>
            <label for="body">Body</label><br />
            <input type="text" name="body" id="body" placeholder="More details about your notification" />
        </div>
        <div>
          <button>Send</button>
        </div>
      </form>

нужно вставить HTML5-код ​​в мой component.ts, я пытаюсь отразить этот код в моем component.html, как я могу вставить его, включая CSS и директивы Angular?Я должен сделать это так, потому что веб-сайт должен меняться в зависимости от текущего часа.Я использую угловой 8.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...