Topics

AngularJs Documentation

When we send Request for using php file but php file can not access from angular method

write into php page
 
 header('Access-Control-Allow-Origin:*');
 header('Content-Type: application/json');
 //Array for response your output
 //Example: $response = [];
 //add all data into Array
 //then convert json formate
 //Example: echo json_encode($response);

How to make Route

At first add your ngRoute. Angular ng Route Avaliable in online.
 var app = angular.module('myApp',['ngRoute']);
  app.config(function($routeProvider){
	$routeProvider
	.when('/',{	
		templateUrl: 'view/home.html'
		//controller:'homecontroller'
	})
	.when('/about',{
		//template: 'this is about',
		templateUrl: 'view/about.html'
	})
	.when('/contact',{
		templateUrl: 'view/contact.html'
	})
	.when('/blog',{
		templateUrl: 'view/blog.html'
	})
	.when('/auth/login',{
		templateUrl: 'view/auth/login.html'
	})
	.when('/auth/register',{
		templateUrl: 'view/auth/register.html'
	})
	
});
	

How to make a simple controller

JavaScript File

 	var app = angular.module('myApp',[]);
	app.controller('language',function($scope){
	    
	    //code here.......
	
	});
	

How to make Side Menu

HTML Page

 	

How to make Side Menu

HTML Page

 	

How to make Side Menu

HTML Page

 	

How to make Side Menu

HTML Page