Opens profile photo
Follow
Click to Follow angular
Angular
@angular
The modern web developer's platform.
angular.ioJoined October 2010

Angular’s Tweets

Congrats to �?� Team Gateway - Vietnam who used to connect users with a COVID-19 digital check-in system! Watch their solution challenge ➡�? youtu.be/Kp13HX58oo4
Quote Tweet
Let’s give a big round of applause for the top 3 winners of the 2022 Solution Challenge Demo Day! �?�?��?�?��?�?� �?� Team Blossom - Canada �?� Team Gateway - Vietnam �?� Team Xtrinsic - Germany Congratulations! Learn about their solutions → goo.gle/demoday22-live
Confetti pops and a trophy flies into the image. Text reads “Congratulations!�? Student headshots from Team Gateway, Blossom, and Xtrinsic are shown.
GIF
5
58

Topics to follow

Sign up to get Tweets about the Topics you follow in your Home timeline.

Carousel

And just like that, v14.1 is here! → CommonModule directives & pipes are marked standalone �? → Three new extended diagnostics to improve your developer experience ⚡�? → No installing the CLI globally, get started with `npm init new-app` 🥺
Quote Tweet
Angular v14 is here 🎉 #ngUpdate includes: 🔑 Strictly typed forms! 🌈 Streamlined page title accessibility 🗯 CLI autocomplete ➕ a developer preview of standalone components! 🤯 & so much more! Learn all about v14: 📚 goo.gle/angular-v14
Show this thread
The Angular v14 celebrating on Google Meets!
GIF
10
146
539
We’re looking for partners to test the image directive we’re building with Chrome Aurora for better Core Web Vitals. If you’re interested in exploring partnership and using Angular v12 or newer reach out to devrel@angular.io 🚀
6
58
181
ng cache provides a way to control and print cache information from the command line. #ngUpdate You can: - enable - disable - delete from disk - print statistics and information
Terminal with the Angular CLI running `ng cache` to control and print cache information. The terminal is dark green and the screen background is pink with graphic prints of lobsters.
GIF
3
18
76
Configure how the service worker caches opaque responses with cacheOpaqueResponses for data-groups! This can be useful for origins that are outside of your control and do not implement CORS. #ngUpdate
// ngsw-config.json
{
  // ...
  "dataGroups": [
    {
      "name": "some-group",
      "urls": ["/some/urls/**"],
      "cacheConfig": {
        "strategy": "performance",
        "maxSize": 42,
        "maxAge": "3d",
        "cacheOpaqueResponses": true
      }
    }
  ],
  // ...
}
2
31
141
🆕 methods for HarnessLoader! #ngUpdate Check if a harness is present, and return the harness instance if present.
const loader = TestbedHarnessEnvironment
    .loader(fixture);

const hasButton = await loader
    .hasHarness(MatButtonHarness)

const buttonHarnessOrNull = await loader
    .getHarnessOrNull(MatButtonHarness);
16
78
ng analytics allows you to control analytics settings and print analytics information. #ngUpdate
Terminal with the Angular CLI running `ng analytics` commands and showing the output of global analytics settings. The terminal is dark green and the screen background is pink with graphic prints of lobsters.
GIF
12
46
Pass in an injector when creating an embedded view through ViewContainerRef.createEmbeddedView and TemplateRef.createEmbeddedView! #ngUpdate - customize DI behavior in the template - enable cleaner APIs for authoring reusable components and component primitives in CDK
viewContainer.createEmbeddedView(templateRef, context, {
  injector: injector,
})
25
123
Rename your Angular properties directly in your code editor! The Angular Language Service can now delegate rename requests from TypeScript to template! #ngUpdate
Embedded video
0:12
22.7K views
15
95
517
Application compilations now targets ES2020! 💓 #ngUpdate This ensures less code downleveling during compilations!
{
  ""compileOnSave"": false,
  ""compilerOptions"": {
    …
    ""target"": ""es2020""
  }
}"
6
32
199
In v14, you can now bind to protected component members directly from your templates! This gives you more control over the public API surface of your reusable components. #ngUpdate
@Component({
  selector: 'my-component',
  template: '{{message}}',  // Now compiles!
})
export class MyComponent {
  protected message: string = 'Hello world';
}
14
106
474
Support negative integers as indices in FormArray! ES2021 was recently updated with a new Array.at method, which supports negative indices. Similarly, Array.splice has negative support. All FormArray methods now handle negative indices, just like ES2021 arrays!
const arr = new FormArray([
  new FormControl(1),
  new FormControl(2)
]);

const control = arr.at(-1);
console.log(control.value); // 2

arr.setControl(-1, new FormControl(3));
console.log(arr.value); // [1, 2, 3]

arr.removeAt(-1);
console.log(arr.value); // [1, 2]

// etc, all FormArray methods updated!
1
19
83
Show this thread
v14 includes more tree shakeable error messages and smaller prod bundle sizes! Thanks to a community contribution by , robust error codes make it easier to reference and find info on how to debug your errors.
https://goo.gle/angular-v14
1
13
61
Show this thread
Contributing to Angular? ♥�? Make sure to update your GitHub fork to our new `main` branch naming: 1. git checkout master 2. git fetch upstream main 3. git rebase upstream/main 4. yarn 5. yarn ng-dev misc new-main-branch
1
33
190
👾 GAME TIME! 👾 Mark and Jeremy are back at it again going LIVE to game, hangout, and answer your questions! 📅 Friday 6/10/22 at 11AM Pacific Set a reminder and add question to the chat now! goo.gle/ng-games
Gaming live stream with the Angular team Friday June 10th, 2022 at 11 AM PDT
1
6
30
Accidentally typing `ng sevre` instead of `ng serve`? v14’s new `ng completion` introduces real-time type-ahead autocompletion! #ngUpdate 🤯 - The CLI will prompt you to opt-in in v14! - Run `ng completion init` to take advantage if you’ve previously opted out!
Terminal with the Angular CLI running `ng generate component,` ``, and ``, in each prompt only the first few letters are typed before hitting TAB and having CLI auto-complete the command for the user. The terminal is dark green and the screen background is pink with graphic prints of lobsters.
GIF
5
46
152