-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.bundle.js
879 lines (713 loc) · 44.5 KB
/
main.bundle.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
webpackJsonp([1,4],{
/***/ 1089:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(495);
/***/ }),
/***/ 238:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Joke; });
var Joke = (function () {
function Joke(setup, punchline) {
this.setup = setup;
this.punchline = punchline;
this.hide = true;
console.log('i am inside construcor');
}
Joke.prototype.toggle = function () {
this.hide = !this.hide;
};
return Joke;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/joke.js.map
/***/ }),
/***/ 494:
/***/ (function(module, exports) {
function webpackEmptyContext(req) {
throw new Error("Cannot find module '" + req + "'.");
}
webpackEmptyContext.keys = function() { return []; };
webpackEmptyContext.resolve = webpackEmptyContext;
module.exports = webpackEmptyContext;
webpackEmptyContext.id = 494;
/***/ }),
/***/ 495:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(582);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__environments_environment__ = __webpack_require__(616);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app_app_module__ = __webpack_require__(603);
if (__WEBPACK_IMPORTED_MODULE_2__environments_environment__["a" /* environment */].production) {
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__["a" /* enableProdMode */])();
}
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_3__app_app_module__["a" /* AppModule */]);
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/main.js.map
/***/ }),
/***/ 602:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var AppComponent = (function () {
function AppComponent() {
this.title = 'app works!!!!';
}
AppComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Component */])({
selector: 'app-root',
template: __webpack_require__(782),
styles: [__webpack_require__(771)]
}),
__metadata('design:paramtypes', [])
], AppComponent);
return AppComponent;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/app.component.js.map
/***/ }),
/***/ 603:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(230);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(219);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_http__ = __webpack_require__(578);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_component__ = __webpack_require__(602);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__header_header_component__ = __webpack_require__(604);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__header_login_button_login_button_component__ = __webpack_require__(606);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__header_login_button_bar_foo_bar_foo_component__ = __webpack_require__(605);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__my_directive__ = __webpack_require__(611);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__my_pipe__ = __webpack_require__(612);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__joke_joke_component__ = __webpack_require__(609);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__joke_form_joke_form_component__ = __webpack_require__(607);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__joke_list_joke_list_component__ = __webpack_require__(608);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__show_hide_show_hide_component__ = __webpack_require__(614);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__model_form_model_form_component__ = __webpack_require__(610);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__reactive_model_from_reactive_model_from_component__ = __webpack_require__(613);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__template_form_template_form_component__ = __webpack_require__(615);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var AppModule = (function () {
function AppModule() {
}
AppModule = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__["b" /* NgModule */])({
declarations: [
__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* AppComponent */],
__WEBPACK_IMPORTED_MODULE_5__header_header_component__["a" /* HeaderComponent */],
__WEBPACK_IMPORTED_MODULE_6__header_login_button_login_button_component__["a" /* LoginButtonComponent */],
__WEBPACK_IMPORTED_MODULE_7__header_login_button_bar_foo_bar_foo_component__["a" /* BarFooComponent */],
__WEBPACK_IMPORTED_MODULE_8__my_directive__["a" /* MyDirective */],
__WEBPACK_IMPORTED_MODULE_9__my_pipe__["a" /* MyPipe */],
__WEBPACK_IMPORTED_MODULE_10__joke_joke_component__["a" /* JokeComponent */],
__WEBPACK_IMPORTED_MODULE_11__joke_form_joke_form_component__["a" /* JokeFormComponent */],
__WEBPACK_IMPORTED_MODULE_12__joke_list_joke_list_component__["a" /* JokeListComponent */],
__WEBPACK_IMPORTED_MODULE_13__show_hide_show_hide_component__["a" /* ShowHideComponent */],
__WEBPACK_IMPORTED_MODULE_14__model_form_model_form_component__["a" /* ModelFormComponent */],
__WEBPACK_IMPORTED_MODULE_15__reactive_model_from_reactive_model_from_component__["a" /* ReactiveModelFromComponent */],
__WEBPACK_IMPORTED_MODULE_16__template_form_template_form_component__["a" /* TemplateFormComponent */]
],
imports: [
__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
__WEBPACK_IMPORTED_MODULE_2__angular_forms__["a" /* FormsModule */],
__WEBPACK_IMPORTED_MODULE_3__angular_http__["a" /* HttpModule */],
__WEBPACK_IMPORTED_MODULE_2__angular_forms__["b" /* ReactiveFormsModule */]
],
providers: [],
bootstrap: [__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* AppComponent */]]
}),
__metadata('design:paramtypes', [])
], AppModule);
return AppModule;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/app.module.js.map
/***/ }),
/***/ 604:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HeaderComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var HeaderComponent = (function () {
function HeaderComponent() {
}
HeaderComponent.prototype.ngOnInit = function () {
};
HeaderComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Component */])({
selector: 'app-header',
template: __webpack_require__(783),
styles: [__webpack_require__(772)]
}),
__metadata('design:paramtypes', [])
], HeaderComponent);
return HeaderComponent;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/header.component.js.map
/***/ }),
/***/ 605:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BarFooComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var BarFooComponent = (function () {
function BarFooComponent() {
}
BarFooComponent.prototype.ngOnInit = function () {
};
BarFooComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Component */])({
selector: 'app-bar-foo',
template: __webpack_require__(784),
styles: [__webpack_require__(773)]
}),
__metadata('design:paramtypes', [])
], BarFooComponent);
return BarFooComponent;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/bar-foo.component.js.map
/***/ }),
/***/ 606:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoginButtonComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var LoginButtonComponent = (function () {
function LoginButtonComponent() {
}
LoginButtonComponent.prototype.ngOnInit = function () {
};
LoginButtonComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Component */])({
selector: 'app-login-button',
template: __webpack_require__(785),
styles: [__webpack_require__(774)]
}),
__metadata('design:paramtypes', [])
], LoginButtonComponent);
return LoginButtonComponent;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/login-button.component.js.map
/***/ }),
/***/ 607:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__joke__ = __webpack_require__(238);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return JokeFormComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var JokeFormComponent = (function () {
function JokeFormComponent() {
this.jokeCreated = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["L" /* EventEmitter */]();
}
JokeFormComponent.prototype.ngOnInit = function () {
};
JokeFormComponent.prototype.createJoke = function (setup, punchline) {
console.log('inside joke-form');
this.jokeCreated.emit(new __WEBPACK_IMPORTED_MODULE_1__joke__["a" /* Joke */](setup, punchline));
console.log('inside joke-form');
};
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["q" /* Output */])(),
__metadata('design:type', Object)
], JokeFormComponent.prototype, "jokeCreated", void 0);
JokeFormComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Component */])({
selector: 'app-joke-form',
template: __webpack_require__(786),
styles: [__webpack_require__(775)]
}),
__metadata('design:paramtypes', [])
], JokeFormComponent);
return JokeFormComponent;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/joke-form.component.js.map
/***/ }),
/***/ 608:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__joke__ = __webpack_require__(238);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return JokeListComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var JokeListComponent = (function () {
function JokeListComponent() {
this.jokes = [
new __WEBPACK_IMPORTED_MODULE_1__joke__["a" /* Joke */]("What did the cheese say when it looked in the mirror?", "Hello-me (Halloumi)"),
new __WEBPACK_IMPORTED_MODULE_1__joke__["a" /* Joke */]("What kind of cheese do you use to disguise a small horse?", "Mask-a-pony (Mascarpone)"),
new __WEBPACK_IMPORTED_MODULE_1__joke__["a" /* Joke */]("A kid threw a lump of cheddar at me", "I thought ‘That’s not very mature’"),
];
}
JokeListComponent.prototype.addJoke = function (joke) {
console.log('i am inside addJoke of joke-list');
this.jokes.unshift(joke);
};
JokeListComponent.prototype.deleteJoke = function (joke) {
console.log('i am inside deleteJoke of joke-list');
var indexToDelete = this.jokes.indexOf(joke);
if (indexToDelete !== -1) {
this.jokes.splice(indexToDelete, 1);
}
};
JokeListComponent.prototype.ngOnInit = function () {
};
JokeListComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Component */])({
selector: 'app-joke-list',
template: __webpack_require__(787),
styles: [__webpack_require__(776)]
}),
__metadata('design:paramtypes', [])
], JokeListComponent);
return JokeListComponent;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/joke-list.component.js.map
/***/ }),
/***/ 609:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__joke__ = __webpack_require__(238);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return JokeComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var JokeComponent = (function () {
function JokeComponent() {
this.jokeDeleted = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["L" /* EventEmitter */]();
}
JokeComponent.prototype.deleteItem = function () {
this.jokeDeleted.emit(this.data);
};
JokeComponent.prototype.ngOnInit = function () {
};
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["k" /* Input */])('joke'),
__metadata('design:type', (typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__joke__["a" /* Joke */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_1__joke__["a" /* Joke */]) === 'function' && _a) || Object)
], JokeComponent.prototype, "data", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["q" /* Output */])(),
__metadata('design:type', Object)
], JokeComponent.prototype, "jokeDeleted", void 0);
JokeComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Component */])({
selector: 'app-joke',
template: __webpack_require__(788),
styles: [__webpack_require__(777)]
}),
__metadata('design:paramtypes', [])
], JokeComponent);
return JokeComponent;
var _a;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/joke.component.js.map
/***/ }),
/***/ 610:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_forms__ = __webpack_require__(219);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ModelFormComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var ModelFormComponent = (function () {
function ModelFormComponent() {
this.states = [
'Haryana',
'Panjab',
'Rajasthan'
];
}
ModelFormComponent.prototype.ngOnInit = function () {
this.myForm = new __WEBPACK_IMPORTED_MODULE_1__angular_forms__["d" /* FormGroup */]({
name: new __WEBPACK_IMPORTED_MODULE_1__angular_forms__["d" /* FormGroup */]({
firstName: new __WEBPACK_IMPORTED_MODULE_1__angular_forms__["c" /* FormControl */]('', __WEBPACK_IMPORTED_MODULE_1__angular_forms__["e" /* Validators */].required),
lastName: new __WEBPACK_IMPORTED_MODULE_1__angular_forms__["c" /* FormControl */]()
}),
email: new __WEBPACK_IMPORTED_MODULE_1__angular_forms__["c" /* FormControl */]('', [
__WEBPACK_IMPORTED_MODULE_1__angular_forms__["e" /* Validators */].required,
__WEBPACK_IMPORTED_MODULE_1__angular_forms__["e" /* Validators */].pattern("[^ @]*@[^ @]*")]),
state: new __WEBPACK_IMPORTED_MODULE_1__angular_forms__["c" /* FormControl */]()
});
};
ModelFormComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Component */])({
selector: 'app-model-form',
template: __webpack_require__(789),
styles: [__webpack_require__(778)]
}),
__metadata('design:paramtypes', [])
], ModelFormComponent);
return ModelFormComponent;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/model-form.component.js.map
/***/ }),
/***/ 611:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyDirective; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var MyDirective = (function () {
function MyDirective() {
}
MyDirective = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["f" /* Directive */])({
selector: '[appMy]'
}),
__metadata('design:paramtypes', [])
], MyDirective);
return MyDirective;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/my.directive.js.map
/***/ }),
/***/ 612:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyPipe; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var MyPipe = (function () {
function MyPipe() {
}
MyPipe.prototype.transform = function (value, args) {
return null;
};
MyPipe = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["B" /* Pipe */])({
name: 'my'
}),
__metadata('design:paramtypes', [])
], MyPipe);
return MyPipe;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/my.pipe.js.map
/***/ }),
/***/ 613:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_forms__ = __webpack_require__(219);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_Rx__ = __webpack_require__(794);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_Rx___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_Rx__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ReactiveModelFromComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var ReactiveModelFromComponent = (function () {
function ReactiveModelFromComponent() {
this.searches = [];
}
ReactiveModelFromComponent.prototype.ngOnInit = function () {
var _this = this;
this.searchField = new __WEBPACK_IMPORTED_MODULE_1__angular_forms__["c" /* FormControl */]();
this.searchField.valueChanges
.subscribe(function (item) {
_this.searches.push(item);
});
};
ReactiveModelFromComponent.prototype.reset = function () {
this.searches = [];
};
ReactiveModelFromComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Component */])({
selector: 'app-reactive-model-from',
template: __webpack_require__(790),
styles: [__webpack_require__(779)]
}),
__metadata('design:paramtypes', [])
], ReactiveModelFromComponent);
return ReactiveModelFromComponent;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/reactive-model-from.component.js.map
/***/ }),
/***/ 614:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ShowHideComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var ShowHideComponent = (function () {
function ShowHideComponent() {
this.Articals = [
{
"name": "Primary",
"text": "artical"
},
{
"name": "Primary",
"text": "artical1"
}
];
}
ShowHideComponent.prototype.ngOnInit = function () {
};
ShowHideComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Component */])({
selector: 'app-show-hide',
template: __webpack_require__(791),
styles: [__webpack_require__(780)]
}),
__metadata('design:paramtypes', [])
], ShowHideComponent);
return ShowHideComponent;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/show-hide.component.js.map
/***/ }),
/***/ 615:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TemplateFormComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var TemplateFormComponent = (function () {
function TemplateFormComponent() {
this.lastName = "Mittal";
this.email = "vinaymittal@temp.com";
this.states = [
'Haryana',
'Panjab',
'Rajasthan'
];
}
TemplateFormComponent.prototype.onSubmit = function () {
if (this.form.valid) {
alert('Form Submmited!');
this.form.reset();
}
};
TemplateFormComponent.prototype.reset = function () {
this.form.reset();
};
TemplateFormComponent.prototype.ngOnInit = function () {
};
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["U" /* ViewChild */])('f'),
__metadata('design:type', Object)
], TemplateFormComponent.prototype, "form", void 0);
TemplateFormComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["V" /* Component */])({
selector: 'app-template-form',
template: __webpack_require__(792),
styles: [__webpack_require__(781)]
}),
__metadata('design:paramtypes', [])
], TemplateFormComponent);
return TemplateFormComponent;
}());
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/template-form.component.js.map
/***/ }),
/***/ 616:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return environment; });
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `angular-cli.json`.
var environment = {
production: false
};
//# sourceMappingURL=/home/vinay/Documents/Angular2/codecraft/src/environment.js.map
/***/ }),
/***/ 771:
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ 772:
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ 773:
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ 774:
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ 775:
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ 776:
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ 777:
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ 778:
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ 779:
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ 780:
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ 781:
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ 782:
/***/ (function(module, exports) {
module.exports = "<!-- <app-joke-list></app-joke-list> -->\n<h2 class=\"text-center\">Model Driven Form</h2>\n<app-model-form></app-model-form>\n<h2 class=\"text-center\">Reactive Model Form</h2>\n<app-reactive-model-from></app-reactive-model-from>\n<h2 class=\"text-center\">Template Driven From</h2>\n<app-template-form></app-template-form>\n<h2></h2>\n"
/***/ }),
/***/ 783:
/***/ (function(module, exports) {
module.exports = "<p>\n header works!\n</p>\n"
/***/ }),
/***/ 784:
/***/ (function(module, exports) {
module.exports = "<p>\n bar-foo works!\n</p>\n"
/***/ }),
/***/ 785:
/***/ (function(module, exports) {
module.exports = "<p>\n login-button works!\n</p>\n"
/***/ }),
/***/ 786:
/***/ (function(module, exports) {
module.exports = "<div>\n <h5>Create a Joke</h5>\n <div>\n <input type=\"text\" #setup>\n </div>\n <div>\n <input type=\"text\" #punchline>\n </div>\n <div>\n <input type=\"button\" (click)=\"createJoke(setup.value,punchline.value)\">\n </div>\n\n</div>\n"
/***/ }),
/***/ 787:
/***/ (function(module, exports) {
module.exports = "<app-joke-form (jokeCreated) = \"addJoke($event)\"></app-joke-form>\n<app-joke *ngFor=\"let j of jokes\" [joke]=\"j\" (jokeDeleted)=\"deleteJoke($event)\"></app-joke>\n\n<app-show-hide></app-show-hide>\n"
/***/ }),
/***/ 788:
/***/ (function(module, exports) {
module.exports = "<div class=\"card card-block\">\n <div>\n {{data.setup}}\n </div>\n <div [hidden] = \"data.hide\">\n {{data.punchline}}\n </div>\n <a class=\"btn\" (click)=\"deleteItem()\">Delete</a>\n</div>\n"
/***/ }),
/***/ 789:
/***/ (function(module, exports) {
module.exports = "<div class=\"card col-md-6 offset-md-3 border-primary\">\n <div class=\"card-body\">\n<form novalidate [formGroup]=\"myForm\">\n <fieldset formGroupName=\"name\">\n <div class=\"form-row\">\n <div class=\"form-group col-md-6\">\n <label>First Name</label>\n <input type=\"firstname\" class=\"form-control\" formControlName=\"firstName\" placeholder=\"First Name\">\n <pre>Valid: {{myForm.controls.firstName}}</pre>\n\n </div>\n <div class=\"form-group col-md-6\">\n <label>Last Name</label>\n <input type=\"lastname\" class=\"form-control\" formControlName=\"lastName\" placeholder=\"Last Name\">\n </div>\n </div>\n</fieldset>\n <div class=\"form-row\">\n <div class=\"form-group\">\n <label>Email</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"email\" placeholder=\"Email\" [ngClass]=\"{'is-invalid': myForm.controls.email.invalid, 'is-valid': myForm.controls.email.valid}\">\n <span>Valid: {{myForm.controls.email.valid}}</span>\n </div>\n\n <div class=\"form-group col-md-6\">\n <label for=\"inputState\">State</label>\n <select id=\"inputState\" class=\"form-control\" formControlName=\"state\">\n <option value=\"\">Choose...</option>\n <option *ngFor=\"let state of states\" [value]= \"state\">{{state}}</option>\n </select>\n </div>\n </div>\n <!-- <div class=\"form-group col-md-6\">\n <label for=\"\">Password</label>\n <input type=\"password\" class=\"form-control\" formControlName=\"inputPassword4\" placeholder=\"Password\">\n </div>\n </div>\n <div class=\"form-group\">\n <label for=\"inputAddress\">Address</label>\n <input type=\"text\" class=\"form-control\" id=\"inputAddress\" placeholder=\"1234 Main St\">\n </div>\n <div class=\"form-group\">\n <label for=\"inputAddress2\">Address 2</label>\n <input type=\"text\" class=\"form-control\" id=\"inputAddress2\" placeholder=\"Apartment, studio, or floor\">\n </div>\n <div class=\"form-row\">\n <div class=\"form-group col-md-6\">\n <label for=\"inputCity\">City</label>\n <input type=\"text\" class=\"form-control\" id=\"inputCity\">\n </div>\n <div class=\"form-group col-md-4\">\n <label for=\"inputState\">State</label>\n <select id=\"inputState\" class=\"form-control\">\n <option selected>Choose...</option>\n <option *ngFor=\"let state of states\" [value]= \"state\">{{state}}</option>\n </select>\n </div>\n <div class=\"form-group col-md-2\">\n <label for=\"inputZip\">Zip</label>\n <input type=\"text\" class=\"form-control\" id=\"inputZip\">\n </div>\n </div>\n <div class=\"form-group\">\n <div class=\"form-check\">\n <input class=\"form-check-input\" type=\"checkbox\" id=\"gridCheck\">\n <label class=\"form-check-label\" for=\"gridCheck\">\n Check me out\n </label>\n </div>\n </div> -->\n <pre>{{myForm.value | json}}</pre>\n <button type=\"submit\" class=\"btn btn-primary\">Sign in</button>\n</form>\n</div>\n</div>\n"
/***/ }),
/***/ 790:
/***/ (function(module, exports) {
module.exports = "<div class=\"card col-md-6 offset-md-3 border-primary\">\n <div class=\"card-body\">\n<form novalidate>\n <input type=\"text\"\n class=\"form-control\"\n placeholder=\"Please enter search term\"\n [formControl]=\"searchField\">\n <ul>\n <li *ngFor=\"let search of searches\">{{ search }}</li>\n </ul>\n <button type=\"submit\" class=\"btn btn-primary\" (click)= \"reset()\">Reset</button>\n</form>\n</div>\n</div>\n"
/***/ }),
/***/ 791:
/***/ (function(module, exports) {
module.exports = "<div *ngFor =\"let artical of Articals\">\n <div class=\"card card-outline-primary\" style=\"max-width: 18rem;\" *ngIf = \"artical.text == 'artical'\">\n <div class=\"card-header\">Header</div>\n <div class=\"card-body text-warning\">\n <h5 class=\"card-title\">Warning card title</h5>\n <p class=\"card-text\">Some quick example text to build on the card title and make up the bulk of the card's content.</p>\n </div>\n </div>\n <a\n class=\"btn btn-warning\">Tell Me\n </a>\n <div class=\"card border-success mb-3\" style=\"max-width: 18rem;\">\n <div class=\"card-header bg-transparent border-success\">Header</div>\n <div class=\"card-body text-success\">\n <h5 class=\"card-title\">Success card title</h5>\n <p class=\"card-text\">Some quick example text to build on the card title and make up the bulk of the card's content.</p>\n </div>\n <div class=\"card-footer bg-transparent border-success\">Footer</div>\n</div>\n<div class=\"card\">\n\n <div class=\"card-block well\">\n\n <div class=\"box \">\n <div class=\"icon\">\n <div class=\"image\"><i class=\"glyphicon glyphicons-server-new\"></i></div>\n </div>\n <div class=\"space\"></div>\n </div>\n <h5 class=\"text-bold\">Tawshif Ahsan Khan</h5>\n </div>\n <div class=\"col-xs-4 col-sm-3 col-lg-2\">\n\n </div>\n </div>\n <div>\n"
/***/ }),
/***/ 792:
/***/ (function(module, exports) {
module.exports = "<div class=\"card col-md-6 offset-md-3 border-primary\">\n <div class=\"card-body\">\n<form novalidate #f = 'ngForm' (ngSubmit)=\"onSubmit()\">\n <fieldset ngModelGroup=\"name\">\n <div class=\"form-row\">\n <div class=\"form-group col-md-6\">\n <label>First Name</label>\n <input type=\"firstname\" class=\"form-control\" placeholder=\"First Name\" name=\"firstName\" ngModel>\n\n\n </div>\n <div class=\"form-group col-md-6\">\n <label>Last Name</label>\n <input type=\"lastname\" class=\"form-control\" placeholder=\"Last Name\" name = \"lastName\" [(ngModel)] = \"lastName\">\n </div>\n </div>\n</fieldset>\n<div class=\"form-row\">\n<div class=\"form-group col-md-6\">\n <label>Email</label>\n <input type=\"email\"\n class=\"form-control\"\n name=\"email\"\n [(ngModel)]=\"email\"\n required\n pattern=\"[^ @]*@[^ @]*\"\n #emailId=\"ngModel\"\n [ngClass]=\"{'is-invalid': emailId.invalid && (emailId.dirty || emailId.touched), 'is-valid': emailId.valid && (emailId.dirty || emailId.touched)}\">\n <div class=\"invalid-feedback\"\n \t\t *ngIf=\"emailId.errors && (emailId.dirty || emailId.touched)\">\n \t\t\t<p *ngIf=\"emailId.errors.required\">Email is required</p>\n \t\t\t<p *ngIf=\"emailId.errors.pattern\">Email must contain at least the @ character</p>\n\t\t</div>\n</div>\n<div class=\"form-group col-md-6\">\n <label for=\"inputState\">State</label>\n <select id=\"inputState\" class=\"form-control\" name=\"state\" ngModel>\n <option value=\"\">Choose...</option>\n <option *ngFor=\"let state of states\" [value]= \"state\">{{state}}</option>\n </select>\n</div>\n</div>\n <!-- <div class=\"form-row\">\n <div class=\"form-group\">\n <label>Email</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"email\" placeholder=\"Email\" [ngClass]=\"{'is-invalid': myForm.controls.email.invalid, 'is-valid': myForm.controls.email.valid}\">\n <span>Valid: {{myForm.controls.email.valid}}</span>\n </div>\n\n <div class=\"form-group col-md-6\">\n <label for=\"inputState\">State</label>\n <select id=\"inputState\" class=\"form-control\" formControlName=\"state\">\n <option value=\"\">Choose...</option>\n <option *ngFor=\"let state of states\" [value]= \"state\">{{state}}</option>\n </select>\n </div>\n </div> -->\n <pre>{{f.value | json}}</pre>\n <button type=\"submit\" class=\"btn btn-primary\" [disabled] = \"f.invalid\">Sign Up</button>\n <button type=\"submit\" class=\"btn btn-warning\" (click) = \"reset()\">Reset</button>\n\n</form>\n</div>\n</div>\n"
/***/ })
},[1089]);
//# sourceMappingURL=main.bundle.map