-
{route}/
- GET =>
list()
- POST =>
create()
- GET =>
-
{route}/{lookup}/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
manage.py | |
utils.py | |
templates/ | |
- foo/ | |
- search.html | |
foo/ | |
- models.py | |
- views.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
Terminal:
ng new my-project --style=scss
cd my-project
npm install --save [email protected]
ng serve
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) {} |