Hi guys, I'm trying to use a project which adheres to 3-level architecture, which uses mvc 4 in my web application. Knockout is binding, but although my data is retrieved from my data level, UI has not been updated. Below is my code snippet
My model which resides in my data level, which is a separate class library
Public Ink SocialProfileId {get; Set; } Public string title {get; Set; } Public string description {get; Set; } Public String Url {get; Set; } Public string ImgUrl {get; Set; } SocialViewModel = function in my web project var {var self = this;
self.Title = ko.observable (""); Self.SocialLinks = ko.observableArray (); GetSocialLinks (); GetSocialLinks function ($ {$. Ajax ({Type: "GET", url: "Ville / SocialLnk", Content Type: "App / Jason; Charset = UTF-8", Datatype: "Jason", Success: Function (Data) {Self.SocialLinks ); Warning (data [0]);}, error: function (error) {warning (ART + + "<-> and ->" + erro.statusText);}}); }} My view is showing my binding
& Lt; / A & gt; & Lt; / Li & gt; How do I display my UI? Because I can not understand why my thoughts are not showing values thanks
Applying bindings? I do not see it in my code sample
to .apple binding (social vivodel); I also recommend paying attention to troubleshooting strategies
"pre" example is super useful:
No comments:
Post a Comment