Skip to content

Commit b8ac334

Browse files
authored
Merge pull request #257 from cal-smith/master
chore(readme): remove useless app.module example
2 parents dad486a + 6bf6d64 commit b8ac334

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @cal-smith @zvonimirfras @magedhennawy
1+
* @cal-smith @zvonimirfras @magedhennawy @youda97

README.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,7 @@ Then we need to include carbon-components in `src/styles.scss`:
3131

3232
> *Note:* For offline usage we'll need to set `$font-path: '~carbon-components/src/globals/fonts';` at the very top of our `src/styles.scss`. This will copy the fonts to our `dist` folder upon successful build. If you like the fonts to be a part of your `assets` folder and not pollute the `dist` folder then copy the fonts from `node_modules/carbon-components/src/globals/fonts` into our app's `src/assets/fonts` folder and add `$font-path: '/assets/fonts/';` at the very top of our `src/styles.scss`.
3333
34-
Then set up our translations in `src/app/app.module.ts`:
35-
36-
```ts
37-
import { BrowserModule } from '@angular/platform-browser';
38-
import { NgModule } from '@angular/core';
39-
40-
import { AppComponent } from './app.component';
41-
42-
@NgModule({
43-
declarations: [
44-
AppComponent
45-
],
46-
imports: [
47-
BrowserModule,
48-
],
49-
providers: [],
50-
bootstrap: [AppComponent]
51-
})
52-
export class AppModule { }
53-
```
54-
55-
_Finally_ we can run `npm start` and start building out our application!
34+
That's it! Now we can run `npm start` and start building out our application!
5635

5736
> *Note:* This isn't the only way to bootstrap a `carbon-components-angular` application, but the combination of `@angular/cli` and the `carbon-components` scss is our recommended setup.
5837

0 commit comments

Comments
 (0)