changed :app/text to :app/msg because it conflicts with (text)
This commit is contained in:
parent
e13db21194
commit
fb025bbbe9
|
@ -17,17 +17,17 @@
|
||||||
|
|
||||||
|
|
||||||
;; Set up our Om UI
|
;; Set up our Om UI
|
||||||
(defonce app-state (atom {:app/text "Welcome to $PROJECT_NAME$"}))
|
(defonce app-state (atom {:app/msg "Welcome to $PROJECT_NAME$"}))
|
||||||
|
|
||||||
(defui WidgetComponent
|
(defui WidgetComponent
|
||||||
static om/IQuery
|
static om/IQuery
|
||||||
(query [this]
|
(query [this]
|
||||||
'[:app/text])
|
'[:app/msg])
|
||||||
Object
|
Object
|
||||||
(render [this]
|
(render [this]
|
||||||
(let [{:keys [app/text]} (om/props this)]
|
(let [{:keys [app/msg]} (om/props this)]
|
||||||
(view {:style {:flexDirection "column" :margin 40}}
|
(view {:style {:flexDirection "column" :margin 40}}
|
||||||
(text nil text)))))
|
(text nil msg)))))
|
||||||
|
|
||||||
;; om.next parser
|
;; om.next parser
|
||||||
(defmulti read om/dispatch)
|
(defmulti read om/dispatch)
|
||||||
|
|
Loading…
Reference in New Issue