Sharing Top Content from the Angular-sphere.
Browsing Tag

code

Next, let’s create a global service to handle a user logging in, logging out, and signing up: - - Edit the auth.service.ts so that it has the following code: - - Remember how providers worked in Angular 1?To test, update to use the and methods from the service: - - Refresh…
Read More...

Angular 4’s new features with simplicity

Now we do have some new features and many under the hood changes.Now, coming to the all new features which have been added to the Angular 4 and that is, Email Validator: In the past in Angular 2, if you had an input field, it should hold…

The new Angular HttpClient API – Angular In Depth

We can do:Rather than:However if you're still interested in the whole Response object you can observe for it:// HttpClientthis.http.get('…', { observe: 'response' });Query parametersOne thing that might not be as intuitive is the way that…

File Upload Using AngularJS and Spring

Over the past few days, several people have asked me how to create a SPRING-MVC file upload using AngularJS.So I thought I'd write a post about it where I create working code that fetches a multipart file from the front-end and process…

6 Apps One Code (Using Angular and Ionic)

You and your team have this great Idea and you have your users using different devices and operating systems to access the same application.Join me on a journey where I show you how to use Angular, Ionic & the PWA standard to build…

Using Controller-as-a syntax and why it’s important

Now would be a good time to understand of how “controller as a syntax” works, so that when the changes comes around you will be ready.Typically you would define your controller as such: To use the new syntax, you would remove scope and…