Oh, Angular CLI, should be easy: Take a look at this: https://github.com/angular/angular-cli#global-library-installation
It will make sure that ng serve also picks up your npm-installed scripts *that you want to expose to the app*. This is so that you may also pack dev scripts (e.g. uglifiers or debug tools or whatnot) but not having to ship them off to production. On Tue, Oct 4, 2016 at 6:20 PM, Luís Augusto de Godoy <[email protected]> wrote: > Hello Zlatko, > > Thank you for your help, > > On the way in my application does not have the blanks, only appeared in > the post when copied and pasted. > > I started the project with angular-cli,, then changed the file > package.json including the bootstrap and jquery, and installed again npm > install, it was included a bootstrap directory and jquery in node_modules > directory. > I've already tried: > > <Link rel = "stylesheet" href = "node_modules/bootstrap/dist/ > css/bootstrap.min.css"> > <Link rel = "stylesheet" href = "/node_modules/bootstrap/dist/ > css/bootstrap.min.css"> > <Link rel = "stylesheet" href = "vendor/bootstrap/dist/css/ > bootstrap.min.css"> > <Link rel = "stylesheet" href = "/vendor/bootstrap/dist/css/ > bootstrap.min.css"> > > nothing worked > > What worked was to put the css file in a subfolder within the app > directory. > > thanks for help > > Em terça-feira, 4 de outubro de 2016 04:14:29 UTC-3, Zlatko Đurić escreveu: >> >> Hi >> >> On Friday, September 30, 2016 at 8:27:28 PM UTC+2, Guto Godoy wrote: >>> >>> >>> and in index.html I inserted the line: >>> >>> <Link rel = "stylesheet" href = "vendor / bootstrap / dist / css / >>> bootstrap.min.css"> >>> >> >> Like Elias said, strip the whitespace. Additionally, you might want to >> prepend that path with */*, so it becomes >> */vendor/bootstrap/dist/css/bootstrap.min.css*. >> >> Finally, how and where do you pack your dependencies? Maybe it's not >> under */vendor* at all, maybe it's something like >> *node_modules/bootstrap*. How did you initialize your angular project - >> did you use one of the seed projects? Which one? If not, angular-cli then? >> How did you install or download bootstrap and where? >> >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/angular/22HPJJr9x7c/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- Zlatko -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
