Angular JS Projects

Login with Session using PHP/MySQLi in Angular JS

To create a login page using Angular JS and set SESSION with PHP/MySQLi. Angular JS is a javascript framework maintained by Google and is capable of creating Single-Page Applications. In this tutorial, we’ll set up PHP Session to prevent users from going into our homepage if not authenticated. Getting Started I’ve have used CDN for …

Login with Session using PHP/MySQLi in Angular JS Read More »

Login with PHP/MySQLi in AngularJS

Creating our Database First, we are going to create our database and insert sample users to test our app. 1. Open phpMyAdmin. 2. Click databases, create a database and name it as angular. 3. After creating a database, click the SQL and paste the below codes

Index.html html

Login.html html

Angular.js JavaScript …

Login with PHP/MySQLi in AngularJS Read More »

How to Create Routes in AngularJS

Creating our Main Page First this is our main page named index.html. In here, we’re gonna create a simple bootstrap navbar for navigation between routes. html

Angular.js Lastly, this contains our Angular.js scripts and our router. Take note that in routing, we need to add the dependency ngRoute to our app for it to work. JavaScript

How to Create Routes in AngularJS Read More »

File Preview before Upload in AngularJS

AngularJS (1.x) example that shows a file preview before upload (image preview, plus filename/size for any file), using CDN for Bootstrap and AngularJS. Creating our HTML html

Angular.js JavaScript

  Download Code of Angular Preview

How to Create a Loader in AngularJS

1. HTML (index.html) html

2. AngularJS Logic (angular.js) javascript

3. Explanation & Best Practices ng-show=”vm.loading”: Toggles the loader overlay. You can switch to ng-if if you want DOM removal instead of visibility toggling. Interceptor (loaderInterceptor): Automatically shows the loader on every $http request and hides it when the response returns or errors. This …

How to Create a Loader in AngularJS Read More »

Scroll to Top