1.创建工程 2.搭建路由(routes.js) 3.添加控制(controller.js) 4.加载模块(app.js) ...
分类:
其他好文 时间:
2016-10-11 11:05:44
阅读次数:
129
In this tutorial we are going to learn how we can can configure redirects in the angular 2 router configuration. We are also going to see again anothe ...
分类:
其他好文 时间:
2016-10-03 00:03:31
阅读次数:
157
Angular 2’s ActivatedRoute allows you to get the details of the current route into your components. Params on the ActivatedRoute are provided as strea ...
分类:
其他好文 时间:
2016-09-26 06:30:03
阅读次数:
169
Using the Angular 2 router requires defining routes, passing them in to the RouterModule.forRoot and then importing the configured RouterModule into y ...
分类:
其他好文 时间:
2016-09-25 06:10:57
阅读次数:
215
1.修改配置文件/.nevDB_HOST=127.0.0.1//数据库地址
DB_PORT=3306//数据库端口
DB_DATABASE=database//数据库名称
DB_USERNAME=root//数据库账号
DB_PASSWORD=root//数据库密码2.开始测试是否连接成功/App/Http/routes.php路由代码如下(可以自定义)Route::get(‘dbtest‘,‘Admi..
分类:
数据库 时间:
2016-09-19 22:41:33
阅读次数:
304
作用:是用户访问指定的页面时将URL匹配到被执行控制器或匿名函数!默认laravel所有的路由存在app/http/routes.php文件中。 原理图: 基础路由有: Route::get($uri,$callback); Route::post($uri,$callback); Route::p ...
分类:
其他好文 时间:
2016-09-14 00:01:55
阅读次数:
271
自定义路由规则的要求,小范围写在前,大范围写在后。路由规则可以注册多条,路由规则的名称不能重复路由规则有顺序,并且按照顺序进行匹配,建议小范围写在前,大范围写在后。路由规则可以设置约束 即正则表达式路由规则匹配的控制器可以设置命名空间约束 routes.MapRoute( name: "NewSho ...
分类:
Web程序 时间:
2016-09-13 11:35:52
阅读次数:
157
1、Backbone.history.start 方法可以让我们在点击后退或者前进的时候同样会触发路由的事件。 2、添加路由的路径,添加的路由路径要求重写父类的routes这个对象 ...
分类:
其他好文 时间:
2016-09-02 18:42:53
阅读次数:
107
AreaRegistration AreaRegistration.RegisterAllAreas FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig RouteTable RouteTable.Routes ...
分类:
Web程序 时间:
2016-09-01 10:55:48
阅读次数:
159
MVC在底层和传统的asp.net是一致的,在底层之上,相关流程如下: 1)Global.asax里,MvcApplication对象的Application_Start()事件中,调用 RouteConfig.RegisterRoutes(RouteTable.Routes); 来注册路由规则。 ...
分类:
Web程序 时间:
2016-08-29 23:57:13
阅读次数:
270