как интегрировать logentries в угловой

  RegistryKey rkSubKey = Registry.CurrentUser.OpenSubKey(" Your Registry Key Location", false);
        if (rkSubKey == null)
        {
           // It doesn't exist
        }
        else
        {
           // It exists and do something if you want to
         }
0
задан k11k2 17 January 2019 в 13:50
поделиться

1 ответ

Вы можете добавить файл JavaScript в ваше приложение Angular, добавив свойство scripts к своему проекту приложения в файле рабочей области приложения Angular (aka angular.json в корневом каталоге вашего проекта):

{
  "version": 1,
  // ...
  "projects": {
    "my-app": {
      // ...
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            // ...
            "scripts": [
              // JavaScript file goes here
              "js/le.min.js",
              // Note: The `scripts` property accepts an array of objects or an array of strings
              // See https://github.com/angular/angular-cli/blob/c5de8e3b0e5c1499a0a17da0208297cd82b36095/packages/angular_devkit/build_angular/src/browser/schema.json#L390-L419 for more info
            ]
            // ...
          }
          // ...
        }
        // ...
      }
    }
    // ...
}
[117 ] Кроме того, вы можете установить это с помощью команды ng config :

# Replace my-app with your actual project name in your angular.json file
ng config projects.my-app.architect.build.options.scripts[0] js/le.min.js
0
ответ дан Edric 17 January 2019 в 13:50
поделиться
Другие вопросы по тегам:

Похожие вопросы: