This project was generated with Angular CLI version 1.5.0.
This application uses NY Times API to fetch data. you'll need a key that you can get from here
When you recieved your key just import the NYTModule and initialized it with the key
import { NytApiModule } from './modules/nyt-api';
@NgModule({
imports: [
...,
NytApiModule.forRoot({ api_key: 'YOUR_API_KEY' })
],
...})
export class AppModule {}
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.