mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
chore: remove deprecated warnings
This commit is contained in:
@ -35,7 +35,7 @@ import {Config} from '../../config/config';
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Directive({
|
@Directive({
|
||||||
selector: 'ion-icon,icon',
|
selector: 'ion-icon',
|
||||||
host: {
|
host: {
|
||||||
'role': 'img'
|
'role': 'img'
|
||||||
}
|
}
|
||||||
@ -58,13 +58,6 @@ export class Icon {
|
|||||||
private _renderer: Renderer
|
private _renderer: Renderer
|
||||||
) {
|
) {
|
||||||
this.mode = config.get('iconMode');
|
this.mode = config.get('iconMode');
|
||||||
|
|
||||||
if (_elementRef.nativeElement.tagName === 'ICON') {
|
|
||||||
// deprecated warning
|
|
||||||
console.warn('<icon> has been renamed to <ion-icon>');
|
|
||||||
console.warn('<ion-icon> requires the "name" attribute w/ a value');
|
|
||||||
console.warn('<icon home></icon> should now be <ion-icon name="home"></ion-icon>');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -319,14 +319,6 @@ export class NavController extends Ion {
|
|||||||
return promise;
|
return promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
private setViews(components, opts?: NavOptions) {
|
|
||||||
console.warn('setViews() deprecated, use setPages() instead');
|
|
||||||
return this.setPages(components, opts);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Push is how we can pass components and navigate to them. We push the component
|
* Push is how we can pass components and navigate to them. We push the component
|
||||||
* we want to navigate to on to the navigation stack.
|
* we want to navigate to on to the navigation stack.
|
||||||
|
Reference in New Issue
Block a user