|
5 | 5 | * Improvements to routing:
|
6 | 6 | * Module specific routes are now specified with a call to the setRoutes(appRoutes, defaultRoute) method of an injected
|
7 | 7 | formRoutesProvider - see the breaking changes section for an example and details.
|
8 |
| - * Support for HTML5Mode and hashPrefix |
9 |
| - * Support for Twitter Bootstrap 3 |
| 8 | + * Support for HTML5Mode and hashPrefix, including a service to simplify use |
| 9 | + * Support for Twitter Bootstrap 3, including a service to simplify use. To use Bootstrap 3 you need to upgrade a few of the |
| 10 | + libraries that Bower installs. Change the following lines in bower.json: |
| 11 | +``` |
| 12 | + "angular-ui-bootstrap-bower": "0.8.0", |
| 13 | + "bootstrap": "2.3.2", |
| 14 | + "select2-bootstrap-css": "~1.2", |
| 15 | +``` |
| 16 | + to |
| 17 | +``` |
| 18 | + "angular-ui-bootstrap-bower": "0.11.0", |
| 19 | + "bootstrap": "3.1.1", |
| 20 | + "select2-bootstrap-css": "~1.3", |
| 21 | +``` |
| 22 | + |
10 | 23 |
|
11 | 24 | ### BREAKING CHANGES
|
12 | 25 | * Routing has changed - replace
|
@@ -40,11 +53,19 @@ where the first parameter is an array of objects containing a route and a set of
|
40 | 53 | [$routeProvider](http://docs.angularjs.org/api/ngRoute/provider/$routeProvider) and the second parameter is the default route.
|
41 | 54 | * Stylesheets have moved down into a ./css folder relative to where they were, and there
|
42 | 55 | are now Bootstrap 2 and Bootstrap 3 versions.
|
43 |
| -* Report drilldowns now start from the model and use | as a delimiter - so |
| 56 | +* You should initialise formsAngular with something similar to: |
| 57 | +``` |
| 58 | +formsAngular.config(['urlServiceProvider', 'cssFrameworkServiceProvider', function (urlService, cssFrameworkService) { |
| 59 | + urlService.setOptions({html5Mode: false, hashPrefix: '!'}); |
| 60 | + cssFrameworkService.setOptions({framework: 'bs2'}); // bs2 and bs3 are supported |
| 61 | + }]); |
| 62 | +``` |
| 63 | +* Report drilldowns now start from the model |
44 | 64 | ```
|
45 | 65 | drilldown: '/#/g_conditional_fields/!_id!/edit'
|
| 66 | +drilldown: '/#!/g_conditional_fields/|_id|/edit' |
46 | 67 | ```
|
47 |
| -becomes |
| 68 | +both become |
48 | 69 | ```
|
49 | 70 | drilldown: 'g_conditional_fields/|_id|/edit'
|
50 | 71 | ```
|
|
0 commit comments