28 Commits

Author SHA1 Message Date
22034b8ac4 demos(ngmodule): update to ngmodule 2016-09-13 14:54:22 -05:00
55a0257dbc refactor(colors): color should be added as an input instead of directly adding the color to the component
BREAKING CHANGES:

Colors should be passed in the `color` input on components, not added
individually as an attribute on the component.

For example:

```
<ion-tabs primary>
```

Becomes

```
<ion-tabs color=”primary”>
```

Or to bind an expression to color:

```
<ion-navbar [color]="barColor">
   ...
</ion-navbar>
```

```ts
@Component({
  templateUrl: 'build/pages/about/about.html'
})
export class AboutPage {
  barColor: string;

  constructor(private nav: NavController, platform: Platform) {
    this.barColor = platform.is('android') ? 'primary' : 'light';
  }
}
```

Reason for this change:
It was difficult to dynamically add colors to components, especially if
the name of the color attribute was unknown in the template.
This change keeps the css flat since we aren’t chaining color
attributes on components and instead we assign a class to the component
which includes the color’s name.
This allows you to easily toggle a component between multiple colors.
Speeds up performance because we are no longer reading through all of
the attributes to grab the color ones.

references #7467
closes #7087 closes #7401 closes #7523
2016-08-23 17:16:55 -04:00
938864e8d0 refactor(button): add ion-button attribute and icon attributes to style buttons
BREAKING CHANGES:

- `<button>` becomes `<button ion-button>`
- `<a button>` becomes `<a ion-button>`
- `<button ion-item>` does not get the `ion-button` attribute
- Buttons inside of `<ion-item-options>` do get the `ion-button`
attribute
- Removed the `category` attribute, this should be passed in
`ion-button` instead.
- Button attributes added for icons in buttons: `icon-only`,
`icon-left`, and `icon-right`

closes #7466
2016-08-16 17:11:02 -04:00
3c493652b2 test(): update to public navCtrl convention 2016-08-04 13:50:15 -05:00
3fb58d95c3 demo(overlay): use injectable overlay controllers 2016-06-28 20:46:43 -05:00
05c7b8f0d7 docs(demos): update API demos so they all have ion-navs
- add spacing between imports
- alphabetize imports
- removed app.html files in favor of an inline ion-nav
- cleaned up config demo so it uses proper syntax
- use file name main.html for the first page for the demo
- name the app ApiDemoApp and first page ApiDemoPage
- replace the ion-toolbars with ion-navbars

closes #7019
closes driftyco/ionic-site#647
2016-06-22 14:45:49 -04:00
33672aef62 demos(header): update header markup 2016-06-17 11:39:59 -05:00
774ab83637 demos(bootstrap): update to use ionicBootstrap 2016-05-31 15:49:56 -05:00
9b8d5bc55a docs(demos): fix spacing on modal and nav params demos
references driftyco/ionic-site#453
2016-02-29 18:47:30 -05:00
1cdf10238f docs(api demos): update api demos 2016-02-24 11:18:51 -05:00
a233074021 docs(demos): add select to modal demo 2016-02-09 17:04:37 -06:00
95d03cad9b docs(demos): prettifying modal demo 2016-01-28 11:27:41 -05:00
d7dec0a914 docs(demos): update demos with item-refactor 2016-01-27 12:09:58 -05:00
38b44f027e docs(demos): update modal demo 2016-01-14 16:07:37 -06:00
52204de117 docs(demos): update icons 2016-01-07 11:33:21 -06:00
a27a9a2a39 docs(demos/modal): modal api demo 2015-12-07 20:59:10 -06:00
7fd1486475 docs(demos): update modal demo 2015-11-25 11:26:43 -06:00
1e699ec5ba chore(): rename IonicPlatform to Platform 2015-10-16 11:58:46 -05:00
4c53a4b554 chore(): rename IonicConfig to Config 2015-10-16 11:53:11 -05:00
cd319e1cf2 working modals 2015-10-05 11:05:55 -05:00
5b0eda5be1 refactor(config): get/set/settings and unit tests 2015-10-02 15:23:08 -05:00
3bd0b5c8ac chore(): use class selectors in e2e 2015-09-22 11:25:27 -05:00
4ed6316498 refactor(lifecycle): onViewDidEnter 2015-09-22 10:21:43 -05:00
3e07743d7e refactor(lifecycle): prefix with on 2015-09-22 10:14:20 -05:00
3364414d24 use padding attribute 2015-09-18 21:58:44 -05:00
f704cc3e97 rename ActionMenu to ActionSheet 2015-09-17 23:41:09 -05:00
8fbf53e1b7 rename Platform to IonicPlatform
Make IonicPlatform an injectable. Closes #99
2015-09-13 00:39:19 -05:00
5afbccca38 chore(demos): add demos for docs 2015-09-10 14:22:00 -05:00