× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Version problems with deprecated methods on my Breeze scripts

Leniel Macaferi
Feb 02, 2015
<p>While taking <a href="http://pluralsight.com/training/Courses/Assessment/build-apps-angular-breeze" rel="nofollow">the same course</a> by John Papa I also hit <code>breeze.core.extendQ</code> not available on step 4.10.</p> <p>This is what I did to solve the issue:</p> <p>1 - In <code>app.js</code> pass <code>breeze</code> dependency directly:</p> <pre><code>// Handle routing errors and success events // Trigger breeze configuration app.run(['$route', 'breeze', function($route, breeze) { // Include $route to kick start the router. }]); </code></pre> <p>2 - In <code>datacontext.js</code> do:</p> <pre><code>return EntityQuery.from('Sessions') .select('id, title, code, speakerId, trackId, timeSlotId, roomId, level, tags') .orderBy(orderBy) .toType('Session') .using(manager).execute() .then(querySucceeded, _queryFailed); </code></pre> <p>You can also get rid of breeze.to$q.shim.js from <code>index.html</code> and delete the file from the <code>\Scripts</code> folder in the project since it's not needed anymore.</p> <hr> <p>Here's the <a href="https://github.com/leniel/SPACodeCamper" rel="nofollow">updated source code</a> of the same project I'm doing now [ including the fixes ].</p> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/22118797/Version%20problems%20with%20deprecated%20methods%20on%20my%20Breeze%20scripts/23646916">Stack Overflow</a>.</p>
comments powered by Disqus