Revert "feat(ivy): add property instruction (#29513)"

This reverts commit e4c1c88cbc.
This commit is contained in:
Miško Hevery
2019-03-27 16:11:04 -07:00
parent e4c1c88cbc
commit 931d356a10
3 changed files with 7 additions and 185 deletions

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {assertDefined, assertGreaterThan} from '../util/assert';
import {assertDefined} from '../util/assert';
import {assertLViewOrUndefined} from './assert';
import {executeHooks} from './hooks';
@ -340,28 +340,3 @@ export function leaveView(newView: LView): void {
}
enterView(newView, null);
}
let _selectedIndex = -1;
/**
* Gets the most recent index passed to {@link select}
*
* Used with {@link property} instruction (and more in the future) to identify the index in the
* current `LView` to act on.
*/
export function getSelectedIndex() {
ngDevMode &&
assertGreaterThan(
_selectedIndex, -1, 'select() should be called prior to retrieving the selected index');
return _selectedIndex;
}
/**
* Sets the most recent index passed to {@link select}
*
* Used with {@link property} instruction (and more in the future) to identify the index in the
* current `LView` to act on.
*/
export function setSelectedIndex(index: number) {
_selectedIndex = index;
}