发表于: 2017-04-19 21:32:16

1 1268


今天完成的事情:完成了安哥拉的路由。并能切换静态页面。

明天计划的事情:看任务7.

遇到的问题:今天遇到了几个坑,1、没加ng-view。2,其他静态页面配置了head 导致安哥拉无限加载至浏览器死机。3,用sublime打开的浏览器页面没有配置localhost,导致路由请求不下来。

收获:解决了以上的坑。朝着更多的坑前进。

//jquery

$(function(){

$("#info").on("click",function(){

$(this).parent().next().slideToggle();

$(this).toggleClass("fa-rotate-180");

});

$("#content").on("click",function(){

$(this).parent().next().slideToggle();

$(this).toggleClass("fa-rotate-180");

});

$("#background").on("click",function(){

$(this).parent().next().slideToggle();

$(this).toggleClass("fa-rotate-180");

});

});

//angular

angular.module('myApp',['ngRoute'])

.config(['$routeProvider', function($routeProvider){

$routeProvider

.when('/welcome',{templateUrl:'welcomePage.html'})

.when('/list',{templateUrl:'page1.html'})

.otherwise({redirectTo:'/welcome'});

}]);



返回列表 返回列表
评论

    分享到