import angular from 'angular';
import uiRouter from 'angular-ui-router';
import ngMaterial from 'angular-material';
import Common from './common/common';
import Components from './components/components';
import AppComponent from './app.component';
import AppMaterial from './app.material';
import 'normalize.css';
import '../../node_modules/angular-material/angular-material.css';

angular.module('app', [
    uiRouter,
    ngMaterial,
    Common,
    Components
]).config(($stateProvider, $locationProvider, $urlRouterProvider) => {
  "ngInject";
  $locationProvider.html5Mode(false).hashPrefix('!');
  $stateProvider
    .state('app', {
      abstract: true,
      url: '/'
    });
    $urlRouterProvider.otherwise('/login');
})
.config(AppMaterial)
.component('app', AppComponent);

@@ -524,15 +524,30 @@
 ider
+, $httpProvider
 ) =%3E %7B%0A
-
   %22n
@@ -692,18 +692,16 @@
     %7D);%0A
-  
   $urlRo
@@ -734,16 +734,128 @@
 ogin');%0A
+  $httpProvider.defaults.xsrfCookieName = 'csrftoken';%0A  $httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';%0A
 %7D)%0A.conf

Configure angular to use django csrf token