I'm having some challenges with Angular2 development using angular-cli.
One thing I'm unsure about is how to include external CSS and JavaScript libraries in my project.
Below is my angular-cli configuration where I have loaded numerous libraries to enhance different pages:
"main": "main.ts",
"test": "test.ts",
"tsconfig": "tsconfig.json",
"prefix": "app",
"mobile": false,
"styles": [...
],
"scripts": [...
],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
I was able to successfully compile Angular, but encountered two errors when running on nginx, as shown in the image linked below:
https://i.sstatic.net/G6rGu.png
Additionally, here is the content of my tsconfig.json file:
{
"compileOnSave": true,
...
}
Further down the line, there's typings.d.ts which I haven't quite figured out yet:
// Typings reference file, you can add your own global typings here
// https://www.typescriptlang.org/docs/handbook/writing-declaration-files.html
declare var System: any;
Lastly, we have a snippet of custom source code based on adminLTE login page with plans to integrate the iCheck plugin:
import { Component, OnInit } from '@angular/core';
...
}
Any advice or insights would be greatly appreciated!