Terminal:
ng new my-project --style=scss
cd my-project
npm install --save [email protected] @ng-bootstrap/ng-bootstrap font-awesome
ng serve
Em src/styles.scss
, adicionar:
import { Injectable } from '@angular/core'; | |
import { Headers, Http, RequestOptions } from '@angular/http'; | |
import 'rxjs/add/operator/toPromise'; | |
@Injectable() | |
export class NewService { | |
constructor(private http: Http) {} |
// Create an array of URLQueryItem that represent the key-value pairs of | |
// the query. | |
var queryItems = [URLQueryItem]() | |
queryItems.append(URLQueryItem(name: "key", value: "value")) | |
// Build the query with the data previously set | |
var query = NSURLComponents() | |
query.queryItems = queryItems | |
// Create an URLRequest using a previously defined url and set its method |
Terminal:
ng new my-project --style=scss
cd my-project
npm install --save [email protected] @ng-bootstrap/ng-bootstrap font-awesome
ng serve
Em src/styles.scss
, adicionar:
Terminal:
ng new my-project --style=scss
cd my-project
npm install --save [email protected]
ng serve
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Redux without React</title> | |
</head> | |
<body> | |
<div> |
manage.py | |
utils.py | |
templates/ | |
- foo/ | |
- search.html | |
foo/ | |
- models.py | |
- views.py |
// Como desabilitar o splitting de código JS após rodar o build (e deixar como era no CRA 1). Necessário dar eject | |
splitChunks: { | |
//chunks: 'all', | |
//name: false, | |
cacheGroups: { | |
default: false | |
} | |
}, | |
//runtimeChunk: true, |