Sass (which stands for Syntactically Awesome Style Sheets) is an extension to CSS.
sass is superset of css Sass is syntatic sugar of css It helps in writing CSS quickly.
- The SCSS - is an extension of CSS syntax. files use the extension .scss.
Sass (which stands for Syntactically Awesome Style Sheets) is an extension to CSS.
sass is superset of css Sass is syntatic sugar of css It helps in writing CSS quickly.
To enable HashLocationStrategy in an Angular application we pass {useHash: true} when we are providing our routes with RouterModule, like so:
TypeScript RouterModule.forRoot(routes, {useHash: true})
http://somedomain.com/page#routing-strategies Taking a look at the app we’ve built so far, if running locally the URLs look something like:
localhost:4040/#/search localhost:4040/#/artist/1234/tracks
Including the CUSTOM_ELEMENTS_SCHEMA in the module allows the use of the web components in the HTML markup without the compiler producing errors
-
).-
)./* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
var params = { | |
a: 1, | |
b: 2, | |
c: 3 | |
}; | |
var queryString = Object.keys(params).map(key => key + '=' + params[key]).join('&'); | |
// or | |
var queryString = Object.keys(params).map(function(key) { |
environments ├── environment.staging.ts
angular.json
"configurations": {
"staging": { "fileReplacements": [
"configurations": { | |
"production": { ... }, | |
"staging": { | |
"fileReplacements": [ | |
{ | |
"replace": "src/environments/environment.ts", | |
"with": "src/environments/environment.staging.ts" | |
} | |
] | |
} |
//--------------- ElementRef---------------------- | |
@ViewChild('foo', {static: false}) foo: ElementRef; | |
@Component({ | |
selector: 'sample', | |
template: ` |
Combination Operators | |
--------------------------------- | |
combineAll | |
combineLatest :star: | |
concat :star: | |
concatAll | |
forkJoin | |
merge :star: | |
mergeAll | |
pairwise |
Observable: Subscribe to it to get the values | |
Subject: Same but you also have control of the values that you want to emit into it (can subscribe to it but also emit) | |
ReplaySubject: | |
Same as subject but will keep track of the N latest emitted values and every time you subscribe to it, | |
it'll emit those N values | |
BehaviorSubject: | |
Subject where you have to set a default value, | |
if you subscribe to it before anything has been emitted you'll get the default value |