src/main/webapp/app.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* Created by phn on 2016/2/2.
*/
var app = angular.module("webApp", [ "ngRoute",
'ui.bootstrap', "ngSanitize", "ui.router", "ngFileUpload" ]);
app.config(function($httpProvider) {
$httpProvider.interceptors.push('TokenInterceptor');
$httpProvider.interceptors.push('HttpInterceptor');
});
app.filter("trusted", [ "$sce", function($sce) {
return function(html) {
if ((typeof html) == 'string') {
// 判断类型为字符串
return $sce.trustAsHtml(html);
}
return html;
}
} ]);
app.config(function($routeProvider,$locationProvider) {
$routeProvider.when("/", {
templateUrl : "modules/index/index.view.html",
controller : 'IndexController'
}).when("/recommend", {
templateUrl : "modules/recommend/recommend.view.html",
controller : 'RecommendController'
}).when("/project", {
templateUrl : "modules/project/project.view.html",
controller : 'ProjectController'
}).when("/about", {
templateUrl : "modules/about/about.view.html",
controller : 'AboutController'
}).when("/friendlink", {
templateUrl : "modules/friendlink/friendlink.view.html",
controller : 'FriendlinkController'
}).when("/blog?", {
templateUrl : "modules/blog/article/article.view.html",
controller : 'ArticleController'
}).when("/blog/archive", {
templateUrl : "modules/blog/archive/archive.list.view.html",
controller : 'ArchiveListController'
}).when("/blog/archive/:archiveName", {
templateUrl : "modules/blog/archive/archive.article.view.html",
controller : 'ArchiveArticleController'
}).when("/blog/category", {
templateUrl : "modules/blog/category/category.list.view.html",
controller : 'CategoryListController'
}).when("/blog/category/:categoryCode", {
templateUrl : "modules/blog/category/category.article.view.html",
controller : 'CategoryArticleController'
}).when("/blog/tag", {
templateUrl : "modules/blog/tag/tag.list.view.html",
controller : 'TagListController'
}).when("/blog/tag/:tagName", {
templateUrl : "modules/blog/tag/tag.article.view.html",
controller : 'TagArticleController'
}).when("/blog/article/:articleCode", {
templateUrl : "modules/blog/article/article.detail.view.html",
controller : 'ArticleDetailController'
后面还有 91 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
