'use strict';let DevApp=angular.module("PartnerApp",['ngRoute','MControllers','MRoutes']).config(['$httpProvider',$httpProvider=>{$httpProvider.interceptors.push('templateInterceptor')}]).factory('templateInterceptor',['$q',$q=>({responseError:rejection=>{let isTemplate=!!rejection.config.url.match(/^content/g);if(!isTemplate){rejection.data='

Страница не найдена 404

';return rejection} return $q.reject(rejection)}})]).directive('templateError',()=>{return{restrict:'E',scope:{'url':'='},link:function(scope){scope.$emit('templateError',{url:scope.url})}}})