tag:blogger.com,1999:blog-6082652835152798567.post1478829200621079693..comments2024-03-19T05:40:47.189-07:00Comments on Sql server, .net and c# video tutorial: Angular 2 http service tutorialUnknownnoreply@blogger.comBlogger17125tag:blogger.com,1999:blog-6082652835152798567.post-65225205490708725062019-06-25T06:57:36.559-07:002019-06-25T06:57:36.559-07:00im using angular 6
and also getting error in the ...im using angular 6 <br />and also getting error in the line " return this._http.get('http://localhost:24535/api/employees')<br /> .map((response: Response) => response.json());"<br />Navyahttps://www.blogger.com/profile/12444366648338057447noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-10582136767550304722019-06-25T06:56:29.740-07:002019-06-25T06:56:29.740-07:00Ia m getting error still
error: ProgressEvent {isT...Ia m getting error still<br />error: ProgressEvent {isTrusted: true, lengthComputable: false, loaded: 0, total: 0, type: "error", …}<br />headers: HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, headers: Map(0)}<br />message: "Http failure response for http://localhost:58332/api/employees: 0 Unknown Error"<br />name: "HttpErrorResponse"<br />Navyahttps://www.blogger.com/profile/12444366648338057447noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-45909233572647271832019-06-04T12:35:37.660-07:002019-06-04T12:35:37.660-07:00Hi Venkat Sir,
To add to my previous error, assum...Hi Venkat Sir,<br /><br />To add to my previous error, assuming to be a async bug I also tried modifying the ngOnInit() with a return statement but did not help, as below:<br /><br />ngOnInit() {<br /> this._employeeService.getEmployees()<br /> .subscribe(employeesData => {<br /> return this.employees = employeesData;<br /> });<br /> }Learnernoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-45606924895634898852019-06-04T12:25:53.525-07:002019-06-04T12:25:53.525-07:00Hi Venkat sir,
Thank you so much for your videos....Hi Venkat sir,<br /><br />Thank you so much for your videos.They are very helpful.<br /><br />I facing an error as shown below, could you please help.<br />---------------------<br />Cannot read property 'subscribe' of undefined<br /> at EmployeeListComponent.ngOnInit (employeeList.component.ts:21)<br /><br />ERROR CONTEXT DebugContext_ {view: {…}, nodeIndex: 0, nodeDef: {…}, elDef: {…}, elView: {…}}<br />---------------------<br /><br />My employeeList.component.ts ngOnInit has the following code already as per the video<br /><br />---------------------<br />ngOnInit() {<br /> this._employeeService.getEmployees()<br /> .subscribe(employeesData => this.employees = employeesData);<br /> }<br />---------------------<br /><br />Thank youLearnernoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-90662117833640594932018-11-17T16:02:56.930-08:002018-11-17T16:02:56.930-08:00Have you solved that issue?Have you solved that issue?Titohttps://www.blogger.com/profile/10439372735704904698noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-37723308363651054032018-11-13T12:15:12.256-08:002018-11-13T12:15:12.256-08:00Hi, Thank you for all efforts.
Using web service i...Hi, Thank you for all efforts.<br />Using web service in angular is an essential topic.<br />How can consume WCF service using angular if that supported?Anonymoushttps://www.blogger.com/profile/16400587375490307032noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-47765146634579036572018-06-28T07:45:34.142-07:002018-06-28T07:45:34.142-07:00ERROR TypeError: _co.getMaleEmployeesCount is not ...ERROR TypeError: _co.getMaleEmployeesCount is not a function<br /> at Object.eval [as updateDirectives] (employeeList.component.html:4)<br /><br />i am getting this error after including <br />*ngIf="employees" in <br /><br /><br /><br /><br />Anonymoushttps://www.blogger.com/profile/18376593456714376301noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-21442768692233981022018-05-09T17:10:50.121-07:002018-05-09T17:10:50.121-07:00Thats because you have to change the line from:
...Thats because you have to change the line from:<br /><br /> this.employees = this.employeeService.getEployees()<br /> .subscribe((employeeData) => this.employees = employeeData);<br /><br />to this one:<br /><br />this.employeeService.getEployees()<br /> .subscribe(employeesData => this.employees = employeesData);Anonymoushttps://www.blogger.com/profile/11350229022755067843noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-16198025596268534772018-04-19T06:16:46.229-07:002018-04-19T06:16:46.229-07:00the most i know in angular2 and mvc is thanks to y...the most i know in angular2 and mvc is thanks to you.<br />very good explanation.<br />love your blogסוכרhttps://www.blogger.com/profile/09675993498397057235noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-84679521721715524002017-12-17T09:23:18.645-08:002017-12-17T09:23:18.645-08:00I AM FACING BELOW ERROR
ERROR SyntaxError: Unexpe...I AM FACING BELOW ERROR<br /><br />ERROR SyntaxError: Unexpected token < in JSON at position 0<br /> at JSON.parse ()<br /> at Response.Body.json (body.ts:36)<br /> at MapSubscriber.eval [as project] (employee.service.ts:15)<br /> at MapSubscriber._next (map.ts:75)<br /> at MapSubscriber.Subscriber.next (Subscriber.ts:95)<br /> at XMLHttpRequest.onLoad (xhr_backend.ts:104)<br /> at ZoneDelegate.invokeTask (zone.js:425)<br /> at Object.onInvokeTask (ng_zone.ts:288)<br /> at ZoneDelegate.invokeTask (zone.js:424)<br /> at Zone.runTask (zone.js:192)<br />defaultErrorLogger @ errors.ts:42<br /><br />KINDLY HELP ME SOLVE THISDhruvhttps://www.blogger.com/profile/07517363773055940231noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-64044305279605158282017-12-03T22:24:54.707-08:002017-12-03T22:24:54.707-08:00Why there is a red underline in './employee...Why there is a red underline in './employee' in the line import { IEmployee } from './employee'; ?<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-60083062643162421442017-11-25T15:09:39.739-08:002017-11-25T15:09:39.739-08:00Hello venkat sir, Thank you so much. I did follow ...Hello venkat sir, Thank you so much. I did follow all the steps and i'm wondering why my application always shows 'No data to display' rather than 'Loading data..' while server processing the request. And in your application while server is processing, Nested component didn't show up but my application shows that. can you help me figure out mistake.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-88316738356905511282017-11-16T12:34:21.860-08:002017-11-16T12:34:21.860-08:00your answer is corrent, greatyour answer is corrent, greatNaveedhttps://www.blogger.com/profile/00859593882764872159noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-9462126125361822762017-11-03T09:53:39.455-07:002017-11-03T09:53:39.455-07:00I am getting this error ...Property 'subscribe... I am getting this error ...Property 'subscribe' does not exist on type 'IEmployee[]'. what could be wrong?pkhttps://www.blogger.com/profile/06838150705932031446noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-90985519042541285192017-08-29T22:48:21.337-07:002017-08-29T22:48:21.337-07:00clear your browser cacheclear your browser cacheAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-9791894402136393172017-08-29T12:35:58.073-07:002017-08-29T12:35:58.073-07:00Hi Chandan,
You are getting length error cause of ...Hi Chandan,<br />You are getting length error cause of below line.<br /> *ngIf="employees && employees.length==0"><br /> colspan="5"><br /> No employee records to display<br /> <br />You can split this one as well using ng-container. It worked for me.<br />ng-container *ngIf="employees"><br /> tr *ngIf="employees.length == 0"><br /> colspan="8">No Employee Data<br /> tr<br /> ng-containerAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-5868775401338982992017-08-12T06:44:26.883-07:002017-08-12T06:44:26.883-07:00Excellent explanation.
One minor issue - I had a...Excellent explanation.<br /><br />One minor issue - I had applied *ngIf="employees" still I am getting length error. Please suggest why this is happening?CKhttps://www.blogger.com/profile/02211210415313671661noreply@blogger.com