Angular 4/5 HTTP GET and POST requests tutorial

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

Комментарии • 343

  • @architadesai7876
    @architadesai7876 7 лет назад +5

    There was a time when I had no hope to finish my task on the edge and then your video came and you're such a savior!
    No other videos explained it like this.

    • @Techsithtube
      @Techsithtube  7 лет назад +1

      Archita, I am glad that you were able to fine what you were looking for. :)

    • @iily.official
      @iily.official 6 лет назад

      @@Techsithtube it's sad that you didn't do the Post request example into the input area :(

  • @ericaepperson8928
    @ericaepperson8928 6 лет назад +3

    thank you for your down-to-earth teaching style. So nice to listen to you chat about coding without the inflated ego that so many people in the tech world seem to think is requisite to being a successful programmer. I really enjoy your videos, thank you!

    • @Techsithtube
      @Techsithtube  6 лет назад +1

      Thank you for watching. I believe that as a teacher you need to be humble.

  • @davidconnelly
    @davidconnelly 7 лет назад

    Another great video (and thanks for answering my question, previously). You are knocking this out of the park. I just can't understand why you're doing all this for free. Anyway, thanks again for this. You're brilliant.

    • @Techsithtube
      @Techsithtube  7 лет назад

      Thanks David for the kind words. Actually I had started creating a udemy course on Angular, I was half way through and someone stole my computer from my car so I lost all the work . I decided that I am going to keep it free to the world . May be one day I can create udemy course.

  • @somesbhowmick2082
    @somesbhowmick2082 7 лет назад +3

    Great component and as expected, full of necessary materiel related to "HttpService and CORS". You make complex thing simple and represented it nicely, Thanks

    • @Techsithtube
      @Techsithtube  7 лет назад +1

      Somes, I am glad that it helped. I went through lot of trouble understanding it when i was learning so I thought it should be simpler than what others have been teaching.

  • @nzjemountfort
    @nzjemountfort 7 лет назад

    Excellent Tutorial - in the first minute you pointed out some issues that took me a long time to even identify a while ago, that will help save ALOT OF PEOPLE ALOT OF TIME!

    • @Techsithtube
      @Techsithtube  7 лет назад

      I did suffer from the same when i started and I thought its important for people to know. Thanks for watching!

  • @mukeshvaidya1379
    @mukeshvaidya1379 6 лет назад +1

    you have very pleasing way to present the topic in simple and lucid manner which made me comment .Looking forward for more in Angular God Bless!

  • @donnacampbell9187
    @donnacampbell9187 6 лет назад

    Thank you so much...I am doing an Angular final in school and you have so helped me understand this !!Bless you!

  • @harshu1982
    @harshu1982 7 лет назад

    Thanks mate, I understood your tutorials very easily...have had been following many, but this helped me a lot actually.

  • @MrNagamalli
    @MrNagamalli 7 лет назад +1

    Hi, your online session presentation is awesome.

  • @manueldiera6781
    @manueldiera6781 6 лет назад +1

    This was great, you have a great way of explaining things and actually showed how to do this step by step. Thanks!

  • @maynorsonglara
    @maynorsonglara 5 лет назад

    Well done tutorial, very explanatory, really amazing edition cutting the unnecessary typing time. Congrats!

  • @jezzyfizzo
    @jezzyfizzo 6 лет назад +2

    All your videos including the JavaScript ones are great. Thanks for the help!

  • @abhig3871
    @abhig3871 7 лет назад

    Cool stuff TechSith, liked the get & Post requests

  • @dollardreams5811
    @dollardreams5811 6 лет назад +8

    Hi techsith your tutorial is very informative plz upload full series on angular6 it's very helpful

  • @bohdanartemenko
    @bohdanartemenko 7 лет назад +1

    Oh my god thank you, i tried to find about how to fix that cross-origin for a long time, only this video tutorial helped me :)

    • @Techsithtube
      @Techsithtube  7 лет назад +2

      Initially i struggled a lot on CORS issue and i could not find a good solution anywhere . So i understand your frustration. I am glad I could help. :)

    • @himanshuupreti9457
      @himanshuupreti9457 6 лет назад +1

      Jsonp is the answer for CORS..

  • @akai2112123
    @akai2112123 6 лет назад

    Thank you so much for the interceptor module ! Loved the video . Cheers

  • @CarlHamilton1914
    @CarlHamilton1914 6 лет назад

    Excellent. This is exactly what I was looking for. To the point!

  • @krishnanshankarasubramania3883
    @krishnanshankarasubramania3883 6 лет назад

    Good one. Useful. One question: if we have multiple HttpClient url to get or post how to handle the access control allow origin? Is it possible to pass multiple URL in the interceptor?

  • @mahevstark9950
    @mahevstark9950 7 лет назад

    love you, thanks, bundle of thanks. you should know it only you're (very) public who is working with angular 5 :) even angular.io doesn't have such guides.

    • @Techsithtube
      @Techsithtube  7 лет назад

      Thanks Faisal, ANgular documentation is confusing that is why i am creating these tutorials make more sense.

  • @abinmathew7708
    @abinmathew7708 7 лет назад

    Small and beautiful tutorial for a beginner

  • @AnjaniNaina
    @AnjaniNaina 5 лет назад +3

    Hi Sir, I need help, can you please tell me how can I call an API which belongs to different domain form my localhost server, because currently, I am facing the cross-origin issue.

  • @VertoSH
    @VertoSH 7 лет назад

    So clear and easy to understand. Nicely done ;)

  • @ashishrprastogi
    @ashishrprastogi 5 лет назад +2

    Hi Sir, I need your help. I got one API which is working on postman but when I have tried to call though angular code it is not working.. showing error

  • @gondrajkumar8783
    @gondrajkumar8783 6 лет назад +1

    thank you so much...today i learn new and first time ..........it possible for this tutorial.
    it great teaching .....

  • @orgestbeqiri488
    @orgestbeqiri488 5 лет назад

    Sir, you are a life savior.

  • @madant2697
    @madant2697 6 лет назад

    a very good and easy to understand tutorial..ty sir..

  • @Reaper_f30
    @Reaper_f30 6 лет назад

    hey man nice tutorial.. question though.. should api call not be done in a service file instead?

  • @nirajdewangan3508
    @nirajdewangan3508 7 лет назад

    thank you, for such a great tutorial.. I am beginner to angular and this series is helping me lot

  • @adnuzzolillo
    @adnuzzolillo 7 лет назад +1

    Very well explained, You are awesome man!

  • @indianfootball2328
    @indianfootball2328 7 лет назад +1

    simplified and awesome, thanks a lot

  • @iily.official
    @iily.official 6 лет назад

    it's sad that you didn't do the Post request example into the input area :(

  • @shivakumar3955
    @shivakumar3955 7 лет назад

    Nice videos.Request you to please add more questions on Angular 2

  • @edwar8117
    @edwar8117 7 лет назад +2

    De Verdad muchas gracias mi pana, desde Venezuela. saludos!!

  • @ranavaibhav1
    @ranavaibhav1 6 лет назад

    @techsith great tutorial, thanks so much. Can you explain how would basic authentication work in the same example?

  • @tayyabqazi143
    @tayyabqazi143 4 года назад

    Bundle of thanks for this video I was searching a lot for this please upload a tutorial about mapping

  • @opendojo929
    @opendojo929 7 лет назад

    very nice tutorial! Do you have one where you teach how to chain Observables correctly with HttpClient?

    • @Techsithtube
      @Techsithtube  7 лет назад

      You mean chain multiple promises?

    • @opendojo929
      @opendojo929 7 лет назад

      Thx for your response. :) I mean how do you use the response of the first http request for the second? Because they are async the might not be ready when using them. Right now I put the second request inside "complete".

  • @matheusrambo8760
    @matheusrambo8760 6 лет назад +1

    Thank you so much, from Brazil!

  • @thisalma
    @thisalma 4 года назад +1

    Thank you so much for the videos ...

  • @navdeepbains3481
    @navdeepbains3481 5 лет назад

    i appreciate your teaching style sir but i think you should have told about pipe operator and three functions error complete

  • @arunkravi3213
    @arunkravi3213 6 лет назад

    Great tutorial. Thanks. Well I didn't understand the last portion of the tutorial. While giving "http post request" , its not actually getting update in the "db.json" file. Only just id increment is showing. What have to do for the getting real updation to db.json file. Anyone please give me an answer.

  • @abhishekkamalkishor3793
    @abhishekkamalkishor3793 6 лет назад

    nice video, had a query ,how to send data in headers while http request, waiting to hear from you soon

  • @viniciogomez9863
    @viniciogomez9863 6 лет назад

    I have problems with the post for the sent through slim framework 3, Error say "Failed to load resource: the server responded with a status of 405 (Method Not Allowed)" sends as method "Option". I'm using Angular 6.

  • @StanleyBateswar
    @StanleyBateswar 6 лет назад +1

    Explained very well. Thanks!

  • @vsooriyabandara
    @vsooriyabandara 7 лет назад

    This is very helpful . Thanks a lot for your effort.

  • @FadilMucia
    @FadilMucia 7 лет назад +1

    Hi @Techsith and thanks for this video. I really understood how to do GET and POST. THANKS.
    I have a question now. Let's take this code you did here.
    How can I print a list of "users" that are in that JSON file? I need for sure an Array, but how can I populate an Array of a json file that exist in a URL?
    Thanks again.
    Please, if someone knows the answer, I would appreciate the help :)

    • @Techsithtube
      @Techsithtube  7 лет назад +2

      If they are inside a json file than you would have to navigate to the array. for example returning Obj = { users:[]} then you have to say myUsersArray = Obj.users; Does that answer your question?

  • @VirajWagh
    @VirajWagh 7 лет назад

    right to the point !!! Perfect explanation!

  • @thinagarankharidass
    @thinagarankharidass 6 лет назад

    Thanks for the video! Awesome explanation!

  • @manojkumarganigapeta2966
    @manojkumarganigapeta2966 6 лет назад

    Nice sir I have one doubt like if I write service call in service.ts how can I get data to my component using post method

    • @Techsithtube
      @Techsithtube  6 лет назад

      You can inject the service in your component

    • @Techsithtube
      @Techsithtube  6 лет назад

      I have service tutotial you can check it out.

  • @uploadtvsd
    @uploadtvsd 6 лет назад

    Thanks, for the great tutorial. Can you help me out with an example how to post data with angular 5 and CI in localhost. I succeed to fetch data using CI model and controller, but unable to post data. Its an CORS issue I think, coz POST is always showing OPTIONS and 500 in console.

  • @ravilynplus1183
    @ravilynplus1183 6 лет назад

    Thank you a lot!! I spended days trying to fix this problem

  • @kevinbrosnahan2416
    @kevinbrosnahan2416 5 лет назад

    Thanks man! This really helped me out!

  • @relangirama
    @relangirama 5 лет назад

    This is very informative, Thanks for this tutorial

  • @hemantkakodia9381
    @hemantkakodia9381 6 лет назад

    Hi. Thanks for the tutorial. I am facing the same issue while making a GET call to cross domain, i tried to add your Interception but even after that, i am facing same issue. Any suggestion would be welcome.

  • @ruchirai5775
    @ruchirai5775 7 лет назад +1

    Nice videos.Request you to please add more questions on CSS html

    • @Techsithtube
      @Techsithtube  7 лет назад

      Yes I have plan to add some more videos on CSS interview questions.

  • @ak19254
    @ak19254 7 лет назад

    Awesome.... Very Productive tutorial..

  • @chejoarevalo
    @chejoarevalo 5 лет назад

    Nice video!! it helps me a lot!

  • @nagarjuna1207
    @nagarjuna1207 6 лет назад

    I might be very bad in basics but want to know why we are importing any module two times? Once in app.module.ts and again in the actual component file where we are going use. Am I missing anything

  • @vijayan5041
    @vijayan5041 7 лет назад

    Thanks for this tutorial. I just have one question that I am getting [object Object] instead of actual response from the server. Could you please help? Thanks.

    • @Techsithtube
      @Techsithtube  7 лет назад

      can you console.log it to see what it its? you can also look at the network tab to see what you are actually getting.

    • @vijayan5041
      @vijayan5041 7 лет назад

      it's something like this"{list: {…}}
      list
      :
      {q: "curd", sr: "28", ds: "any", start: 0, end: 25, …}
      __proto__
      :
      Object"

    • @vijayan5041
      @vijayan5041 7 лет назад

      after expanding"{list: {…}}
      list
      :
      ds
      :
      "any"
      end
      :
      25
      group
      :
      ""
      item
      :
      (25) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]
      q
      :
      "curd"
      sort
      :
      "n"
      sr
      :
      "28"
      start
      :
      0
      total
      :
      231
      __proto__
      :
      constructor
      :
      ƒ Object()
      hasOwnProperty
      :
      ƒ hasOwnProperty()
      isPrototypeOf
      :
      ƒ isPrototypeOf()
      propertyIsEnumerable
      :
      ƒ propertyIsEnumerable()
      toLocaleString
      :
      ƒ toLocaleString()
      toString
      :
      ƒ ()
      valueOf
      :
      ƒ valueOf()
      __defineGetter__
      :
      ƒ __defineGetter__()
      __defineSetter__
      :
      ƒ __defineSetter__()
      __lookupGetter__
      :
      ƒ __lookupGetter__()
      __lookupSetter__
      :
      ƒ __lookupSetter__()
      get __proto__
      :
      ƒ __proto__()
      set __proto__
      :
      ƒ __proto__()
      __proto__
      :
      constructor
      :
      ƒ Object()
      hasOwnProperty
      :
      ƒ hasOwnProperty()
      isPrototypeOf
      :
      ƒ isPrototypeOf()
      propertyIsEnumerable
      :
      ƒ propertyIsEnumerable()
      toLocaleString
      :
      ƒ toLocaleString()
      toString
      :
      ƒ ()
      valueOf
      :
      ƒ valueOf()
      __defineGetter__
      :
      ƒ __defineGetter__()
      __defineSetter__
      :
      ƒ __defineSetter__()
      __lookupGetter__
      :
      ƒ __lookupGetter__()
      __lookupSetter__
      :
      ƒ __lookupSetter__()
      get __proto__
      :
      ƒ __proto__()
      set __proto__
      :
      ƒ __proto__()"

    • @Techsithtube
      @Techsithtube  7 лет назад

      ok in my example i am getting an array back so my code is written for an array. you are getting a json object so you need to change it to use that. Go it?

    • @vijayan5041
      @vijayan5041 7 лет назад

      Could you please tell me exactly what should i write if i want to display this data on page?

  • @heberfomin
    @heberfomin 6 лет назад

    Hi techsith. I have an issue. In dev environment I can send data to API. Api receives the Content-Type "application/x-www-form-urlencoded" that sends the json data to API, but, in production environment (after build) the API receives an empty json. My application is served by IIS. Do you have an idea how can I fix it? Is a web.config issue? Thanks.

    • @Techsithtube
      @Techsithtube  6 лет назад

      Where are you using the prod version? It could be CORS issue. Is there any errors?

    • @heberfomin
      @heberfomin 6 лет назад

      techsith, thanks for your kindness in to respond. Angular is in one server, API in another with different IP and https prefix (www and api.). There is no error message, but I agree with you is a Cors Issue. I Tried to resolve it on server thru web.config (IIS) with no success. The API is in Laravel and I put CORS module there, but did'n resolve also.

  • @SaiPrakash16
    @SaiPrakash16 7 лет назад

    hi , Had a query if you are aware -
    if I have a json format
    { Entries : [ {
    id:1,
    name: abc,
    class:a
    }]
    }
    how do I create the interface here to send out a put or post here ?!

    • @Techsithtube
      @Techsithtube  7 лет назад

      Here instead of an profile in my example, you have Entries. which means you would get yourAPI/Entries/name=abc Have you created an rest api for this?

    • @SaiPrakash16
      @SaiPrakash16 7 лет назад

      yes, we have an API which takes this as JSON as an input for an update . The question is how to do we go about creating a model that would be in the above format ?

    • @Techsithtube
      @Techsithtube  7 лет назад

      You mean represent this data in typscript interface? you can do something like this
      interface Entries {
      [index: number]: { id: number; name: string; class: any };
      }

    • @SaiPrakash16
      @SaiPrakash16 7 лет назад

      yes a TS interface, not in this format , thanks for your time anyways, have found a way :)

  • @sivaprakas9828
    @sivaprakas9828 7 лет назад

    Do you have full angular course? i want to learn angular? so which version is suitable for me to learn ?

    • @Techsithtube
      @Techsithtube  7 лет назад +1

      So far I have covered installation + setup, Creating new components, Data down Actions up and Http get/post. Please check it out. And in next few weeks, I will release , service, routes and styling,

  • @sanjayprasad6776
    @sanjayprasad6776 6 лет назад

    Thanks for the wonderful video. Sir I would like to request you to make video on lazy loading.

  • @ayushisrivastava2794
    @ayushisrivastava2794 5 лет назад +2

    Sir plz make a video on state management in angular 7

  • @anuragpatel3976
    @anuragpatel3976 7 лет назад

    This is really nice and helpful.
    it would be more better if you create components and module manually that might give better understanding of concepts.
    not all vedios only one would be fine.

    • @Techsithtube
      @Techsithtube  7 лет назад

      Anurag I have created components manually in first few videos. basically, when you create a component via cli you would see what has been created in the command line so follow that. I have a video on JavaScript modules check it out.

    • @anuragpatel3976
      @anuragpatel3976 7 лет назад

      Yes, I have seen your javascript videos they are really helpful.

  • @CVenture
    @CVenture 7 лет назад

    Great one.. Can you please create a simple tutorial that calling http get request, that passes the token in header or request body??

  • @talksurajsingh
    @talksurajsingh 4 года назад

    Very nice sir je 🎉🎉

  • @sksoumitrakar
    @sksoumitrakar 6 лет назад

    How to pass Cookie in header of Get request? I have been searching this since days but didn't get an answer

  • @warrenclarin6488
    @warrenclarin6488 7 лет назад

    Great tutorial .. but how can i do this using Services then pass the response to a Component ?

    • @Techsithtube
      @Techsithtube  7 лет назад

      Actually its very simple. Move the http get/post code into a service and . Inject service to which ever component you are trying to use. Look at the last few tutorials on services and observable I released.

    • @warrenclarin6488
      @warrenclarin6488 7 лет назад

      please help me sir .. i can get data from an API using services and successfully received a response .. but i don't know how to pass the response from this service to a component .. :(

    • @nzjemountfort
      @nzjemountfort 7 лет назад

      +Warren Clarin ruclips.net/video/daxeYiv5FHk/видео.html

  • @nishilbhave3555
    @nishilbhave3555 7 лет назад

    Hello Techsith, I don't think "Access-Control-Allow-Origin:*" is set on a client side. It is set on the server side Indeed!

    • @Techsithtube
      @Techsithtube  7 лет назад

      It has to be done on both client and server. Depending on your security settings. your code may or may not work depending on your security settings.

  • @yt1234567100
    @yt1234567100 6 лет назад +1

    I do not why this line not working in the code this.age = data[0].age; return undefined. Help!

    • @Techsithtube
      @Techsithtube  6 лет назад

      what do you get when you console.log(data)

    • @yt1234567100
      @yt1234567100 6 лет назад

      I think It might be something wrong with my JSON data, I used string to build JSON. \" to build JSON by add those strings.

    • @Techsithtube
      @Techsithtube  6 лет назад

      Oh ok . Look at the network tab and copy the response. you can verify if the response if valid JSON or not.

    • @yt1234567100
      @yt1234567100 6 лет назад

      thanks..

    • @yt1234567100
      @yt1234567100 6 лет назад

      The data is valid, but data:any[], data[0] is array all strings. data[0] is the position of character array. For example: data[0] = {"1":"test"}, would be "{"

  • @Latif127
    @Latif127 6 лет назад

    Very clear and nice tutorial

  • @ErwinCorzo
    @ErwinCorzo 6 лет назад

    Me gustan muchos sus videos, gracias!!!.

  • @neerajupadhyay1509
    @neerajupadhyay1509 6 лет назад

    Dear i have an problem when i am passing parameter in your given url
    can you please help me into this

  • @yogith9417
    @yogith9417 5 лет назад +1

    If you are using the in-house developed spring boot API, just adding @CrossOrigin to controller will solve the Cross Origin problem.

    • @Techsithtube
      @Techsithtube  5 лет назад

      Thats awesome. is it open sourse?

    • @yogith9417
      @yogith9417 5 лет назад

      @@Techsithtube Yeah. Infact it is provided in spring framework itself, just like @RestController, @RequestMapping etc annotations.
      For more info on how to use it, www.baeldung.com/spring-cors

  • @suraj1749
    @suraj1749 6 лет назад

    Thank you.. Keep up the good work.. 😀

  • @skverskk
    @skverskk 7 лет назад

    Maybe I'm missing something here. So, I add the interceptor.module.ts to the root area of my Angular5 App. I then add it to the app.module.ts file. I have a service that does CRUD operations. So, the part I'm not understanding is, where does this interceptor module fit into my angular app? Do I inject it into my component? Do I have to hard code my endpoint inside the interceptor.module file? Does anyone have a code snippet showing the whole process? Thanks for any help..

  • @tayfoooooor
    @tayfoooooor 7 лет назад

    what does exactly CORS prevent you from??? I thought is will prevent you requesting your local server::: e.g when using development server (angular and laravel) all on the same machine !!!!

    • @Techsithtube
      @Techsithtube  7 лет назад

      A user agent makes a cross-origin HTTP request when it requests a resource from a different domain, protocol, or port than the one from which the current document originated.

  • @MattDuarte11
    @MattDuarte11 7 лет назад

    Super helpful you got another sub

  • @ymazalmazal1757
    @ymazalmazal1757 6 лет назад

    Very nice, it seems to be for deeloppement only because the content of the json file is github...

  • @phemant24
    @phemant24 7 лет назад

    Hello Sir, What is the difference between @angular/common/http and @angular/http ?

    • @Techsithtube
      @Techsithtube  7 лет назад +1

      I believe prior to v4.3 @angular/http was used. However , not it seems the new way is @angular/common/http. which means
      You need to inject HttpClient in your component/service not the module. If you import HttpClientModule in your @NgModule
      Also pay attention that old http was injected using Http class token instead of the new HttpClient.
      Going forward the old http client will be deprecated. so dont use it.

    • @phemant24
      @phemant24 7 лет назад

      Thank You very much for very quick reply.

    • @yanivsalman9685
      @yanivsalman9685 7 лет назад +1

      one of angular 5 changes was @angular/common/http
      in the future @angular/http wont be supported anymore so dont use it.
      more changes : / Pipes /how to import observable and some changes in the Form Module and lifeSicleHooks plus rxjs and typecript versions updated.

    • @phemant24
      @phemant24 7 лет назад

      Yaniv Salman thank you bro

  • @mr.techno-era7474
    @mr.techno-era7474 6 лет назад

    Sir, but applying cors on every HTTP request does not create any security issue.

  • @fernandosouza2388
    @fernandosouza2388 7 лет назад

    awesome tutorial, thanks bro, abraços do Brasil

  • @tilakbarthi2183
    @tilakbarthi2183 6 лет назад

    can u please tell me search with two input fields one is drop down one is input box taking request from json and display it in list model example i need

    • @Techsithtube
      @Techsithtube  6 лет назад

      can you tell me little bit more about exactly what you need.

  • @azimkazi9374
    @azimkazi9374 7 лет назад

    Very great... Much more helpful

  • @Sankey369
    @Sankey369 7 лет назад

    I have defined child routes which accepts parameter from parent. I am using this parameter to make GET request data from API which return value to same object. So when I change parameters from parent, it should refresh child component with new data. I am not getting view refreshed. can you suggest what can be done to resolve this?

    • @Techsithtube
      @Techsithtube  7 лет назад

      Yes it should update the data. Can you first make sure that parent is passing the data to child using console.log() first.

    • @Sankey369
      @Sankey369 7 лет назад

      Parameters are received in child as expected. It is the service which is getting different data but assigning to same variable. This variable i have used in child component to iterate over tr tag.

    • @Techsithtube
      @Techsithtube  7 лет назад

      Oh I see. Where is the code? I can take a look if its in public domain like github.

    • @Sankey369
      @Sankey369 7 лет назад

      I have posted my question on StackOverflow. stackoverflow.com/questions/48223175/child-component-is-not-updating-when-data-inside-object-is-changed/48228038#48228038

  • @frankkismann1043
    @frankkismann1043 7 лет назад +6

    Muchas gracias, desde Chile.

  • @maheshik2577
    @maheshik2577 5 лет назад +1

    Thanks for the tutorial.

  • @thetravelok106
    @thetravelok106 7 лет назад

    is possible with relative path?... example this.http.post('php/test.php', { a: 'foo', b: 'bar', })

  • @designxperts9815
    @designxperts9815 3 года назад

    Sir Why we use * in angular? is there any logic behind.

  • @InteresThingvideos
    @InteresThingvideos 6 лет назад

    can you tell me how do i use csrf token from the backend. please.

  • @petersunny4481
    @petersunny4481 6 лет назад

    What is the name of software that you are using to make this video. Like both ur face and the screen recorder.. Kindly someone here let me know

  • @pamidichetan
    @pamidichetan 6 лет назад

    Inside services making a post request as below but the post request is not sent
    return this.http.post(this.rootUrl+'auth/sign_in',{
    email : userName,
    password : password
    })
    .map((data : any)=>{
    localStorage.setItem('userToken',data.access_token);
    this.router.navigate(['/home']);
    },
    (err : HttpErrorResponse)=>{
    this.isLoginError = true;
    });
    }
    Checked in the network also but there is no post request?

    • @Techsithtube
      @Techsithtube  6 лет назад

      the code looks fine. Any errors?

    • @pamidichetan
      @pamidichetan 6 лет назад

      @@Techsithtube no errors but I am doing call to the function from component to the service

  • @thebiography6021
    @thebiography6021 7 лет назад

    Hi,I would like to know how to implement native plugins eg;camera in angular mobile app.

    • @Techsithtube
      @Techsithtube  7 лет назад

      What platform you are using for building the mobile app?

    • @thebiography6021
      @thebiography6021 7 лет назад

      ionic 3 ,which platform will be suitable with angular 5?

    • @Techsithtube
      @Techsithtube  7 лет назад

      ionic 3 is sutable platform. I belive you can use Ionic Native to interface with the Cordova Camera plugin

    • @thebiography6021
      @thebiography6021 7 лет назад

      Thanks you sir.

  • @ashrafomar4034
    @ashrafomar4034 5 лет назад

    thank you a YOU ARE AMAZING ,it helped me a lot

  • @ronniekemper8142
    @ronniekemper8142 2 года назад

    good teaching thank you stranger

  • @Zero_Bug_Zone
    @Zero_Bug_Zone 7 лет назад

    Hello sir,
    As we can handle Rest Api with angular with the help of Http package .
    Is it possible to handle Soap Api also through Angular ?? Please let me know if you have any idea

    • @Techsithtube
      @Techsithtube  7 лет назад

      look for ngx-soap, its a package that you can use with angular .

    • @Zero_Bug_Zone
      @Zero_Bug_Zone 7 лет назад

      Thankyou sir
      I find few details on this which are a bit helpful..
      if you can upload a video on ngx-soap soon that would be great.
      Thanks a lot

  • @nirjharpaul
    @nirjharpaul 6 лет назад

    Why you did not use two way binding

    • @Techsithtube
      @Techsithtube  6 лет назад

      I have a separate video on two-way binding you can check it out on my channel. Thanks for watch it.

  • @fawadullahkhan
    @fawadullahkhan 7 лет назад

    can u also do RSJX overview. thanks

  • @avinashmohite6933
    @avinashmohite6933 7 лет назад

    i have one issue. animation effect not working on tab selection in angular 5 . how to resolve this issue.

    • @Techsithtube
      @Techsithtube  7 лет назад

      sure. where did you put the CSS for tabs?

    • @avinashmohite6933
      @avinashmohite6933 7 лет назад

      sir please check this link
      frameworkinfotech.com/
      some effect on home page
      first time work perfectly
      but when go to any other tab and back to home tab then affect not working in angular 5
      in angular 4 work perfectly. i have use in angular 4
      ngOnInit() {
      this.loadScript('assets/js/animate/animate-function.js');
      }
      public loadScript(url) {
      console.log('preparing to load...')
      let node = document.createElement('script');
      node.src = url;
      node.type = 'text/javascript';
      document.getElementsByTagName('head')[0].appendChild(node);
      }
      but this not work for angular 5 please give me solution.

    • @Techsithtube
      @Techsithtube  7 лет назад

      I would suggest instead of loading it on ngOnInit() . What you have done is a hack and loading a js file is async process it may or may not work depending on when this file is received. Better solution is to create a utility lib with animate functions and import it to this component. Import would make sure that the file is there before using it.

    • @avinashmohite6933
      @avinashmohite6933 7 лет назад

      Thanks but how to do it. should you give me example?

  • @shubhamsoni6013
    @shubhamsoni6013 7 лет назад

    Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:4200' is therefore not allowed access.
    after adding interseptopr file in app, and included in app.module.ts
    please help me,

    • @naderafshari3456
      @naderafshari3456 6 лет назад

      Did you fire this out? Did it have to do with localhost?