惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Security Latest
Security Latest
C
Cisco Blogs
P
Palo Alto Networks Blog
Know Your Adversary
Know Your Adversary
Project Zero
Project Zero
C
Cyber Attacks, Cyber Crime and Cyber Security
NISL@THU
NISL@THU
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Secure Thoughts
P
Privacy International News Feed
V
Vulnerabilities – Threatpost
D
Docker
Google Online Security Blog
Google Online Security Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Recent Announcements
Recent Announcements
T
The Exploit Database - CXSecurity.com
G
Google Developers Blog
Schneier on Security
Schneier on Security
小众软件
小众软件
爱范儿
爱范儿
GbyAI
GbyAI
J
Java Code Geeks
T
Tailwind CSS Blog
Cisco Talos Blog
Cisco Talos Blog
The Hacker News
The Hacker News
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
TaoSecurity Blog
TaoSecurity Blog
MyScale Blog
MyScale Blog
B
Blog RSS Feed
Cyberwarzone
Cyberwarzone
有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Securelist
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Y
Y Combinator Blog
S
Schneier on Security
Latest news
Latest news
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 叶小钗
F
Fortinet All Blogs
M
MIT News - Artificial intelligence
PCI Perspectives
PCI Perspectives
V
V2EX
V2EX - 技术
V2EX - 技术
O
OpenAI News
W
WeLiveSecurity

Ember.js Blog

Ember 7.0 Released Announcing the Official TypeScript Types Public Preview Accessibility Working Group Update The 2020 Ember Roadmap Countdown to The New Year - Built-in Addons Countdown to The New Year - Ember Exam Countdown to The New Year - Ember Code Snippet Countdown to The New Year - Ember Changeset Countdown to The New Year - Ember In Viewport Countdown to The New Year - Ember CLI Update Countdown to The New Year - Ember Template Invocation Location Countdown to The New Year - Ember CLI TypeScript Countdown to The New Year - Ember Bootstrap and Ember Paper Countdown to The New Year - Ember CSS Modules Countdown to The New Year - Ember Mapbox GL Countdown to The New Year - Ember Shepherd Countdown to The New Year - Ember Template Lint Countdown to The New Year - Ember Composable Helpers Countdown to The New Year - Ember Leaflet Countdown to The New Year - Ember Intl Countdown to The New Year - Ember Test Selectors Countdown to The New Year - Ember Power Select Countdown to The New Year - Ember Simple Auth Countdown to The New Year - Ember SVG Jar Countdown to The New Year - Ember Page Title Countdown to The New Year- Ember A11Y Testing Countdown to The New Year - Ember Angle Brackets Codemod Countdown to The New Year - Ember CLI Sass Countdown to The New Year - Ember Animated Countdown to The New Year - Ember Auto Import Countdown to The New Year - Ember Concurrency Countdown to The New Year - Ember Tether Countdown to The New Year - Ember Modifier Countdown to The New Year - Ember CLI Mirage Countdown to The New Year - Ember Sortable Coming Soon in Ember Octane - Part 5: Glimmer Components Coming Soon in Ember Octane - Part 4: Modifiers Coming Soon in Ember Octane - Part 3: Tracked Properties Coming Soon in Ember Octane - Part 2: Angle Brackets & Named Arguments Preview Weekend: 2019 Ember Community Survey Coming Soon in Ember Octane - Part 1: Native Classes First Annual DecEmber Event! 2018 Ember Community Survey 2017 Ember Community Survey Announcing The Glimmer 2 Alpha Upcoming deprecation of baseURL in Ember CLI 2.7 2016 Ember Community Survey Announcing Ember Core Team Face to Face, January 2016 Ember.js 1.13.0 and 2.0 Beta Released Another Ember 2.x Status Update Ember.js 1.12 and 1.13 Beta (Glimmer!) Released Ember.js 1.11.1 Released Ember.js 1.11.0 and 1.12 Beta Released Ember.js 1.10.0 and 1.11 Beta Released Compiling templates with Ember 1.10 Core Team Meeting Minutes - 2014/08/01 Core Team Meeting Minutes - 2014/08/14 Core Team Meeting Minutes - 2014/09/12 Cleaning Up Github Issues Core Team Meeting Minutes - 2014/07/11 Core Team Meeting Minutes - 2014/07/25 Ember 1.6.0 and 1.7 Beta Released Core Team Meeting Minutes - 2014/06/13 Core Team Meeting Minutes - 2014/06/20 Core Team Meeting Minutes - 2014/06/27 Core Team Meeting Minutes - 2014/06/06 Core Team Meeting Minutes - 2014/04/25 Core Team Meeting Minutes - 2014/04/04 Ember 1.5.0 and 1.6 Beta Released Core Team Meeting Minutes - 2014/03/07 Core Team Meeting Minutes - 2014/03/14 Core Team Meeting Minutes - 2014/03/21 Core Team Meeting Minutes - 2014/02/28 Core Team Meeting Minutes - 2014/02/21 Core Team Meeting Minutes - 2014/02/14 Ember 1.4.0 and 1.5 Beta Released Core Team Meeting Minutes - 2014/01/27 Core Team Meeting Minutes - 2014/01/31 Core Team Meeting Minutes - 2014/02/07 Core Team Meeting Minutes - 2014/01/17 Core Team Meeting Minutes - 2014/01/03 Ember 1.3.0 and 1.4 Beta Released Core Team Meeting Minutes - 2013/12/20 Core Team Meeting Minutes - 2013/12/06 Ember 1.2.0 and 1.3 Beta Released Ember 1.1.2 Released Ember 1.1.1 and 1.2 Beta Released Ember 1.0 Released Ember 1.0 RC8 Released Ember 1.0 RC7 Released Ember 1.0 RC6.1, RC5.1, RC4.1, RC3.1, RC2.1 RC1.1 Released Ember 1.0 RC6 Ember 1.0 RC5 Ember 1.0 RC4 Ember 1.0 RC3 Announcing the Ember.js Security Policy Ember 1.0 RC2 Ember 1.0 Prerelease 2 Ember 1.0 Prerelease
Ember 1.0 RC
2013-02-15 · via Ember.js Blog

– By Peter Wagenet

Today at Ember Camp, we announced the release of Ember.js 1.0 RC1.

This release is all about fixing bugs from the pre4 release, and gets us that much closer to a final 1.0 release. Between this release and the 1.0 final, we will mostly be focusing on stability and documentation.

If you discover any blocking bugs or undocumented areas, please file tickets at the emberjs/ember.js repo on GitHub and consider helping out.

Route Replacement

You can now transition to a new route without creating an entry in the history:

// instead of this, which creates a history entry
router.transitionTo('index');

// do this
router.replaceWith('index');

In the redirect hook, you can use replaceWith and Ember won't create a history entry.

In a controller, you can use replaceRoute (instead of transitionToRoute) to do the same thing.

Item Controller

If you want every item in a {{#each}} to be wrapped in an ObjectController, you can do so:

{{#each posts itemController="post"}}
  {{!-- `this` in here is each post wrapped in an App.PostController --}}
{{/each}}

Register and Inject

Internally, Ember uses a "container" to instantiate your controllers and other objects.

As of Ember 1.0 RC1, you can use App.register to override the default lookup for controllers and other objects. For example:

App.register('controller:post', Ember.ObjectController.extend());

In general, you should use the default naming conventions, which Ember will use to find objects, but you can use this API for advanced usages.

Similarly, you can use App.inject to tell Ember to automatically inject objects into other Ember objects.

App.register('network:main', App.NetworkAdapter);
App.inject('controller', 'network', 'network:main');

This will create a single instance of App.NetworkAdapter and give it to every controller created over the course of building your application. Internally, Ember Data uses this API to give every controller the application's store:

Router Activate and Deactivate

Currently, many people are using the undocumented and private enter and exit hooks to run code whenever Ember activates a route handler or deactivates it.

As of Ember 1.0 RC1, there are public hooks: activate and deactivate. Note that the activate hook will run only when a route handler is activated for the first time. If a route handler's context changes, the setupController hook will run again, but not the activate hook.

App.reset()

If you are trying to run integration tests with Ember, you might have noticed that there is no good way to reset all of an application's state.

No more!

As of Ember 1.0 RC1, you can call App.reset() to destroy all objects created for the application, and bring the application back to /.

Big List of Changes

Since .pre4, we've added these features:

  • Added the ability to replace the current route without adding a history entry, using router.replaceWith
  • Added support for String literals in {{action}} and {{linkTo}} to differentiate between static String parameters and properties on the current context
  • Allow redirection from routes that are not the final resting route
  • Fix a bug where using named outlets would confuse where child templates should be rendered into
  • Add itemController, which allows a {{#each}} to wrap each iterated element in a controller that can be used to store transient state
  • Fix a bug involving {{else}} templates only working a single time
  • Add intersection to EnumerableUtils
  • Added App.register and App.inject to control the default application's dependency injection container
  • Fixes regressions in jQuery 1.9 to address changes made to .attr and .prop
  • Add support for {{unbound helper}} where helper is a custom helper registered via Ember.Handlebars.registerBoundHelper
  • Added Ember.debug to print debug-level warnings and use it to print the current version of Ember and its dependencies on boot
  • Fix a bug where changing the model property passed to {{render}} does not update the rendered template
  • Added public activate and deactivate hooks in the router. If you were using the private enter and exit methods, please switch!
  • Added Application#reset to help with integration tests
  • Several fixes for the Ember Inspector
  • Many bug and performance fixes

You can see the full changelog at the official CHANGELOG.