UNPKG
taffy-coustom-ui
Version:
latest (12.0.4)
12.0.4
自己编译的
www.jqwidgets.com
TaffyBlog/jQWidgets
taffy-coustom-ui
/
demos
/
Angular
/
src
/
editor
/
twowaydatabinding
/
app.component.ts
20 lines
(14 loc)
•
284 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import
{
Component
}
from
'@angular/core'
;
@Component
({
selector
:
'app-root'
,
templateUrl
:
'./app.component.html'
})
export
class
AppComponent
{
value
:
string
;
getWidth
() :
any
{
if
(
document
.
body
.
offsetWidth
<
850
) {
return
'90%'
; }
return
850
; } }