This file contains hidden or 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
@Component({ | |
selector: 'tags-internal-auto-complete-results', | |
template: ` | |
<div class="container"> | |
<span *ngFor="let tag of data" (click)="selectTag.emit(tag);" class="tag"> | |
{{tag.name}} | |
</span> | |
</div> | |
`, | |
styleUrls: ['../styles/tags-auto-complete.styles.css'], |
This file contains hidden or 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
@Component({ | |
selector: 'tags-internal-auto-complete-results', | |
template: ` | |
<style> | |
.container { | |
border: 1px solid #9e9e9e; | |
padding: 2px; | |
margin-top: 1px; | |
} | |
</style> |
This file contains hidden or 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
@Component({ | |
selector: 'tags-internal-auto-complete-results', | |
template: ` | |
<div class="container"> | |
<span *ngFor="let tag of data" (click)="selectTag.emit(tag);" class="tag"> | |
{{tag.name}} | |
</span> | |
</div> | |
`, | |
styleUrls: ['../styles/tags-auto-complete.styles.css'], |
This file contains hidden or 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
private getGroups(): Observable<any> { | |
// .... | |
return this.http.get(_url, options) | |
.map(response => { | |
var responseAsObject = response.json(); | |
console.log(responseAsObject); | |
return responseAsObject; | |
})' | |
} |
This file contains hidden or 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
> [email protected] test /Users/svlad/dev/ng2-diary-book | |
> jest | |
PASS src/app/diary/components/diary.spec.ts | |
FAIL src/app/diary/containers/my-dairy-page.spec.ts (7.219s) | |
● MyDairyPageComponent › should create | |
No provider for Router! | |
at injectionError (node_modules/@angular/core/bundles/core.umd.js:1201:90) |
This file contains hidden or 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
[WDS] App updated. Recompiling... | |
23:46:07.426 client?ffdb:41 [WDS] App updated. Recompiling... | |
23:46:08.236 client?ffdb:41 [WDS] App hot update... | |
23:46:08.236 log.js:23 [HMR] Checking for updates on the server... | |
23:46:08.778 log.js:23 [HMR] Updated modules: | |
23:46:08.800 log.js:23 [HMR] - ../../../../../src lazy recursive | |
23:46:08.801 log.js:23 [HMR] - ../../../core/@angular/core.es5.js | |
23:46:08.801 log.js:23 [HMR] - ../../../../../src/main.ts | |
23:46:08.801 log.js:23 [HMR] - ../../../compiler/@angular/compiler.es5.js | |
23:46:08.801 log.js:23 [HMR] - ../../../platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js |
This file contains hidden or 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
lar-ngrx-diary svlad$ ng serve | |
As a forewarning, we are moving the CLI npm package to "@angular/cli" with the next release, | |
which will only support Node 6.9 and greater. This package will be officially deprecated | |
shortly after. | |
To disable this warning use "ng set --global warnings.packageDeprecation=false". | |
fallbackLoader option has been deprecated - replace with "fallback" | |
loader option has been deprecated - replace with "use" | |
fallbackLoader option has been deprecated - replace with "fallback" |
This file contains hidden or 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
console.log possible-combo-detector.js:35 | |
590245 | |
console.log possible-combo-detector.js:48 | |
riverValue { handType: 5, handRank: 2, value: 20482, handName: 'straight' } [ '3H', '4H', '5H', '6D', 'KD', '2D', '2C' ] | |
console.log possible-combo-detector.js:48 | |
riverValue { handType: 5, handRank: 2, value: 20482, handName: 'straight' } [ '3H', '4H', '5H', '6D', 'KD', '2D', '3C' ] | |
console.log possible-combo-detector.js:48 | |
riverValue { handType: 5, handRank: 2, value: 20482, handName: 'straight' } [ '3H', '4H', '5H', '6D', 'KD', '2D', '4C' ] | |
console.log possible-combo-detector.js:48 | |
riverValue { handType: 5, handRank: 2, value: 20482, handName: 'straight' } [ '3H', '4H', '5H', '6D', 'KD', '2D', '5C' ] |
This file contains hidden or 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
Есть меню “Друзья”. Там есть 2 вкладки. Список друзей и приглашения. На вкладке приглашения отображаются входящие приглашения. На вкладке друзья список друзей. Друга можно удалить. Можно посмотреть дневник друга в режиме READONLY. | |
Дополнительно: можно ставить лайки друзьям и тп : прикрутить emoji. | |
Добавление друзей: на вкладке друзья есть кнопка “Добавить в друзья”. Вводим email друга, приглашаем. У друга при этом приглашение появляется на вкладке приглашения. | |
Информация о статусе: где-то всегда на виду должны отображаться кол-во приглашений: верхний плашка, меню (около друзей), на заголовке вкладки Приглашения | |
Дополнительно: новостная лента. |
This file contains hidden or 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
При инициаилзации компонента контейнера делается emit события о получении списка | |
Компонент слушает в сторе список товаров. По изменению списка обновляет переменную, которая передаётся в props списка. | |
Стор по получению события о получении (событие кидает effect) товаров сэтит свойство списка. | |
Effect же кидается событием о выборе первой записи. | |
Стор при получении событии об установке первой записи смотрит есть ли уже выбранная запись. Если есть, то проверяет есть ли в текущем списке эта запись. Если есть, ничего не делает, если нет, то делает выбранной первую запись. |
NewerOlder